Member Junction
    Preparing search index...
    RealtimeClientState:
        | "connecting"
        | "connected"
        | "listening"
        | "speaking"
        | "closed"
        | "error"

    Connection / turn state of a realtime client session.

    • connecting — the provider connection is being negotiated
    • connected — the transport is up but the control channel is not yet open
    • listening — control channel open; mic live; waiting on / hearing the user
    • speaking — the model is producing (or about to produce) audible output
    • closed — the session has been torn down
    • error — a fatal transport error occurred; the session is no longer usable

    Note there is deliberately NO thinking state here: "the host is executing a tool" is host policy, not wire state. Hosts that want a busy indicator set it themselves between receiving a tool call and calling BaseRealtimeClient.SendToolResult.