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

    Type Alias NewSessionResponse

    Response from creating a new session.

    New sessions default to idle until a state update reports otherwise. Updates may arrive before or after this response. Clients MUST NOT overwrite an already-reported state when the response arrives.

    An Agent whose new session is not idle MUST send the session's state_update after this response.

    See protocol docs: Creating a Session

    type NewSessionResponse = {
        sessionId: SessionId;
        configOptions?: SessionConfigOption[];
        availableCommands?: AvailableCommand[];
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    Unique identifier for the created session.

    Used in all subsequent requests for this conversation.

    configOptions?: SessionConfigOption[]

    Initial session configuration options.

    Optional. Omitted or empty means no config options are advertised. Senders MUST use an array, not null. Later config_option_update notifications replace this list.

    availableCommands?: AvailableCommand[]

    Initial commands the Agent can execute in this session.

    Optional. Omitted or empty means no initial commands are advertised. Senders MUST use an array, not null. Later available_commands_update notifications replace this list.

    _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