Terminates the underlying connection.
Appends client content (used to seed initial context) to the conversation.
Streams realtime user input to the model — media frames (audio now) AND mid-session text. Realtime text is the Live API's "respond now" path for in-conversation messages: native-audio models treat sendClientContent as history seeding only and will NOT generate from it mid-call, while realtime text triggers immediately.
OptionalactivityEnd?: ActivityEndOptionalactivityStart?: ActivityStartManual activity markers — used in MEETING mode (automatic activity detection disabled).
Optionalaudio?: Blob_2Optionalmedia?: Blob_2Optionaltext?: stringReplies to a server tool call with one or more function responses.
The minimal subset of
@google/genai'sSessionthat the realtime driver depends on. Declaring the seam as an interface (rather than the concrete SDKSession) lets unit tests inject a fully in-memory fake that drives the registered callbacks with Gemini-shaped messages and captures outbound calls — no websocket, no network.