Skip to content

InitializeResponse

Sub classes

Name Children Inherits
InitializeProxyResponse
aclientp.schema.v2.protocol
**UNSTABLE**: Response to ``proxy/initialize``; the same as an ``initialize`` response.

    Base classes

    Name Children Inherits
    AnnotatedObject
    aclientp.schema.v2.base
    A v2 object with the ``_meta`` extension point.

    ⋔ Inheritance diagram

    graph TD
      95970869059872["initialize.InitializeResponse"]
      95970868359040["base.AnnotatedObject"]
      95970855946400["base.Schema"]
      95970851503232["main.BaseModel"]
      125067848591872["builtins.object"]
      95970868359040 --> 95970869059872
      95970855946400 --> 95970868359040
      95970851503232 --> 95970855946400
      125067848591872 --> 95970851503232

    🛈 DocStrings

    Bases: AnnotatedObject

    Response to the initialize method.

    Source code in src/aclientp/schema/v2/initialize.py
    class InitializeResponse(AnnotatedObject):
        """Response to the ``initialize`` method."""
    
        protocol_version: 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."""
    
        info: Implementation
        """Information about the implementation sending this initialize response."""
    
        capabilities: AgentCapabilities | MISSING = MISSING
        """Capabilities supported by the agent."""
    
        auth_methods: Sequence[AuthMethod] | MISSING = MISSING
        """Authentication methods supported by the agent."""
    

    auth_methods class-attribute instance-attribute

    auth_methods: Sequence[AuthMethod] | MISSING = MISSING
    

    Authentication methods supported by the agent.

    capabilities class-attribute instance-attribute

    capabilities: AgentCapabilities | MISSING = MISSING
    

    Capabilities supported by the agent.

    info instance-attribute

    Information about the implementation sending this initialize response.

    protocol_version instance-attribute

    protocol_version: 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.

    :fa-brands-github: Show source on GitHub