Response message for API call.

Constructors

Properties

Server will disconnect soon.

serverContent?: LiveServerContent

Content generated by the model in response to client messages.

sessionResumptionUpdate?: LiveServerSessionResumptionUpdate

Update of the session resumption state.

setupComplete?: LiveServerSetupComplete

Sent in response to a LiveClientSetup message from the client.

Request for the client to execute the function_calls and return the responses with the matching ids.

toolCallCancellation?: LiveServerToolCallCancellation

Notification for the client that a previously issued ToolCallMessage with the specified ids should have been not executed and should be cancelled.

usageMetadata?: UsageMetadata

Usage metadata about model response(s).

Accessors

  • get data(): undefined | string

    Returns the concatenation of all inline data parts from the server content if present.

    Returns undefined | string

    If there are non-inline data parts in the response, the concatenation of all inline data parts will be returned, and a warning will be logged.

  • get text(): undefined | string

    Returns the concatenation of all text parts from the server content if present.

    Returns undefined | string

    If there are non-text parts in the response, the concatenation of all text parts will be returned, and a warning will be logged.