ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias SessionStatusResponseExperimental

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    Response from checking the status of a session.

    The result is a snapshot. A session reported open may be closed or evicted before the Client's next request.

    type SessionStatusResponse = {
        status: SessionStatus;
        state?: StateUpdate | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index

    Whether the Agent has the session in memory.

    Required. Clients MUST treat a value they do not recognize as saved.

    state?: StateUpdate | null

    The session's current foreground state, as the same snapshot the Agent sends in state_update notifications.

    Optional. Agents SHOULD include it when status is open. Omitted and null mean the Agent is not reporting foreground state, and Clients MUST NOT read that as idle. This is a snapshot, not a new transition. Clients MUST NOT count an idle snapshot as a new completion.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility