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

    Type Alias InitializeResponse

    Response to the initialize method.

    Contains the negotiated protocol version and Agent capabilities.

    See protocol docs: Initialization

    type InitializeResponse = {
        protocolVersion: ProtocolVersion;
        info: Implementation;
        capabilities?: AgentCapabilities;
        authMethods?: AuthMethod[];
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    protocolVersion: ProtocolVersion

    The highest protocol version supported by the Agent that is at or below the version requested by the Client. If no such version exists, initialization fails with error code -32022.

    The Client MUST check that it supports this version and SHOULD disconnect if it does not.

    Information about the implementation sending this initialize response.

    capabilities?: AgentCapabilities

    Capabilities supported by the Agent.

    authMethods?: AuthMethod[]

    Authentication methods supported by the Agent.

    Optional. Omitted or empty means the Agent does not advertise the auth/login and auth/logout methods. Supplying one or more methods means the Agent MUST support both auth/login and auth/logout.

    _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