Terminates the underlying connection.
Appends client content WITHOUT triggering generation (context notes, history seeding).
Streams realtime user input to the model — mic audio frames AND mid-session text. Text via realtime input 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, but realtime text triggers immediately.
Replies to a server tool call with one or more function responses.
The minimal subset of
@google/genai'sSessionthis client depends on. Declaring the seam as an interface (rather than the concrete SDKSession) lets unit tests inject a fully in-memory fake that captures outbound sends and drives the registered message callback with Gemini-shaped frames — no websocket, no network. (Mirrors the server driver'sGeminiLiveSessionseam.)