Agent Client Protocol - v0.2.0-alpha.8
    Preparing search index...

    Interface NewSessionResponse

    Response from creating a new session.

    See protocol docs: Creating a Session

    interface NewSessionResponse {
        modes?: null | SessionModeState;
        sessionId: string;
    }
    Index

    Properties

    Properties

    modes?: null | SessionModeState

    UNSTABLE

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

    sessionId: string

    A unique identifier for a conversation session between a client and agent.

    Sessions maintain their own context, conversation history, and state, allowing multiple independent interactions with the same agent.

    Example

    use agent_client_protocol::SessionId;
    use std::sync::Arc;

    let session_id = SessionId(Arc::from("sess_abc123def456"));

    See protocol docs: Session ID