Payload
public enum Payload : SendableThe type of message sent from the server.
Important
Potential future additions to thePayload enum may not
trigger a semantic versioning major version update. If ensure forward
compatibility, client code should avoid exhaustive switch statements
over this enum by adding a default case.
-
Content generated by the model in response to client messages.
Declaration
Swift
case content(LiveServerContent) -
Request for the client to execute the provided functions.
Declaration
Swift
case toolCall(LiveServerToolCall) -
Notification for the client that a previously issued
LiveServerToolCallshould be cancelled.Declaration
Swift
case toolCallCancellation(LiveServerToolCallCancellation) -
Server will disconnect soon.
Declaration
Swift
case goingAwayNotice(LiveServerGoingAwayNotice)