InitializeResponse
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| InitializeProxyResponse aclientp.schema.proxy Response to ``proxy/initialize``. Same as the ``initialize`` response. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Response aclientp.schema.base Base request model. |
â‹” Inheritance diagram¶
graph TD
95970862467248["agent_responses.InitializeResponse"]
95970861210848["base.Response"]
95970862258240["base.AnnotatedObject"]
95970862254416["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970861210848 --> 95970862467248
95970862258240 --> 95970861210848
95970862254416 --> 95970862258240
95970851503232 --> 95970862254416
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: Response
Response from the initialize method.
Contains the negotiated protocol version and agent capabilities.
See protocol docs: Initialization
Source code in src/aclientp/schema/agent_responses.py
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
agent_capabilities
class-attribute
instance-attribute
¶
agent_capabilities: AgentCapabilities | None = Field(default_factory=AgentCapabilities)
Capabilities supported by the agent.
agent_info
class-attribute
instance-attribute
¶
agent_info: Implementation | None = None
Information about the Agent name and version sent to the Client.
Note: in future versions of the protocol, this will be required.
auth_methods
class-attribute
instance-attribute
¶
auth_methods: Sequence[AuthMethod] | None = Field(default_factory=list)
Authentication methods supported by the agent.
protocol_version
class-attribute
instance-attribute
¶
The protocol version the client specified if supported by the agent.
Or the latest protocol version supported by the agent. The client should disconnect, if it doesn't support this version.
create
classmethod
¶
create(
name: str,
title: str,
version: str,
protocol_version: int,
load_session: bool | None = False,
http_mcp_servers: bool = False,
sse_mcp_servers: bool = False,
audio_prompts: bool = False,
embedded_context_prompts: bool = False,
image_prompts: bool = False,
list_sessions: bool = False,
resume_session: bool = False,
close_session: bool = False,
auth_methods: Sequence[AuthMethod] | None = None,
) -> Self
Create an instance of AgentCapabilities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the agent. |
required |
title
|
str
|
The title of the agent. |
required |
version
|
str
|
The version of the agent. |
required |
protocol_version
|
int
|
The protocol version of the agent. |
required |
load_session
|
bool | None
|
Whether the agent supports |
False
|
http_mcp_servers
|
bool
|
Whether the agent supports HTTP MCP servers. |
False
|
sse_mcp_servers
|
bool
|
Whether the agent supports SSE MCP servers. |
False
|
audio_prompts
|
bool
|
Whether the agent supports audio prompts. |
False
|
embedded_context_prompts
|
bool
|
Whether the agent supports embedded context prompts. |
False
|
image_prompts
|
bool
|
Whether the agent supports image prompts. |
False
|
list_sessions
|
bool
|
Whether the agent supports |
False
|
resume_session
|
bool
|
Whether the agent supports |
False
|
close_session
|
bool
|
Whether the agent supports |
False
|
auth_methods
|
Sequence[AuthMethod] | None
|
The authentication methods supported by the agent. |
None
|