AnnotatedObject
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| Unknown aclientp.schema.v2.base Base of fallback variants of open unions: a custom or future variant. |
||
| UnsupportedProtocolVersionErrorData aclientp.schema.v2.common Data of the ``-32022`` (Unsupported protocol version) error. |
||
| SessionNotFoundErrorData aclientp.schema.v2.common Data of the ``-32002`` (Resource not found) error for an unknown or inactive session. |
||
| Icon aclientp.schema.v2.common An optionally sized icon a user interface can display. |
||
| Implementation aclientp.schema.v2.common Name and version of a client or agent implementation. |
||
| Usage aclientp.schema.v2.common **UNSTABLE**: Token usage of the foreground work that just completed (not cumulative). |
||
| Cost aclientp.schema.v2.common Cumulative cost of a session. |
||
| EnvVariable aclientp.schema.v2.common An environment variable to set when launching a process. |
||
| HttpHeader aclientp.schema.v2.common An HTTP header to send with requests. |
||
| Annotations aclientp.schema.v2.common Hints for the client on how an object is used or displayed. |
||
| AuthMethodAgent aclientp.schema.v2.auth Agent handles authentication itself through ``auth/login``. |
||
| AuthMethodTerminal aclientp.schema.v2.auth Terminal-based authentication method. |
||
| LoginAuthRequest aclientp.schema.v2.auth Request parameters for the ``auth/login`` method. |
||
| LoginAuthResponse aclientp.schema.v2.auth Response to the ``auth/login`` method. |
||
| LogoutAuthRequest aclientp.schema.v2.auth Request parameters for the ``auth/logout`` method. |
||
| LogoutAuthResponse aclientp.schema.v2.auth Response to the ``auth/logout`` method. |
||
| AuthAccount aclientp.schema.v2.auth **UNSTABLE**: An account or credential the agent has configured. |
||
| AuthStatusRequest aclientp.schema.v2.auth **UNSTABLE**: Request parameters for the ``auth/status`` method. |
||
| AuthStatusResponse aclientp.schema.v2.auth **UNSTABLE**: Response to the ``auth/status`` method. |
||
| AuthStatusUpdateNotification aclientp.schema.v2.auth **UNSTABLE**: Notification sent by the agent when its authentication status changes. |
||
| TerminalAuthCapabilities aclientp.schema.v2.capabilities Capabilities for terminal authentication methods. |
||
| ClientAuthCapabilities aclientp.schema.v2.capabilities Authentication capabilities supported by the client. |
||
| AuthStatusCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Auth status capabilities supported by the agent. |
||
| AgentAuthCapabilities aclientp.schema.v2.capabilities Authentication-related extension capabilities supported by the agent. |
||
| ElicitationFormCapabilities aclientp.schema.v2.capabilities Form-based elicitation capabilities. |
||
| ElicitationUrlCapabilities aclientp.schema.v2.capabilities URL-based elicitation capabilities. |
||
| ElicitationCapabilities aclientp.schema.v2.capabilities Elicitation capabilities supported by the client. |
||
| CommandsSkillCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Client support for ``skill`` command entries. |
||
| CommandsCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Command types the client understands in addition to ``command``. |
||
| PromptSuggestionsImageCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for image content in prompt suggestions. |
||
| PromptSuggestionsAudioCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for audio content in prompt suggestions. |
||
| PromptSuggestionsEmbeddedContextCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for embedded resources in prompt suggestions. |
||
| PromptSuggestionsCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Client support for ``prompt_suggestions_update`` session updates. |
||
| ClientSessionCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Session-related capabilities supported by the client. |
||
| ClientCapabilities aclientp.schema.v2.capabilities Capabilities supported by the client. |
||
| PromptImageCapabilities aclientp.schema.v2.capabilities Capabilities for image content in prompt requests. |
||
| PromptAudioCapabilities aclientp.schema.v2.capabilities Capabilities for audio content in prompt requests. |
||
| PromptEmbeddedContextCapabilities aclientp.schema.v2.capabilities Capabilities for embedded context in prompt requests. |
||
| PromptSkillInlineCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for ``skill`` content blocks at any position in a prompt. |
||
| PromptSkillCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for ``skill`` content blocks in prompt requests. |
||
| PromptCapabilities aclientp.schema.v2.capabilities Prompt capabilities supported by the agent in ``session/prompt`` requests. |
||
| McpStdioCapabilities aclientp.schema.v2.capabilities Capabilities for stdio MCP server transports. |
||
| McpHttpCapabilities aclientp.schema.v2.capabilities Capabilities for HTTP MCP server transports. |
||
| McpAcpCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for ACP MCP server transports. |
||
| McpCapabilities aclientp.schema.v2.capabilities MCP capabilities supported by the agent for session lifecycle requests. |
||
| SessionDeleteCapabilities aclientp.schema.v2.capabilities Capabilities for the ``session/delete`` method. |
||
| SessionAdditionalDirectoriesCapabilities aclientp.schema.v2.capabilities Capabilities for additional session directories support. |
||
| SessionSystemPromptOverrideCapabilities aclientp.schema.v2.capabilities Capabilities for the ``override`` system prompt mode. |
||
| SessionSystemPromptModeCapabilities aclientp.schema.v2.capabilities System prompt delivery modes the agent supports in addition to ``append``. |
||
| SessionSystemPromptCapabilities aclientp.schema.v2.capabilities Capabilities for client-provided system prompts. |
||
| SessionForkCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for the ``session/fork`` method. |
||
| SessionArchiveCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for ``session/archive`` and ``session/unarchive``. |
||
| SessionStatusCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for the ``session/status`` method. |
||
| SessionOptionsCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for the ``session/options`` method. |
||
| SessionTitleCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Capabilities for Client-set session titles. |
||
| SessionCapabilities aclientp.schema.v2.capabilities Session capabilities supported by the agent. |
||
| ProvidersCapabilities aclientp.schema.v2.capabilities **UNSTABLE**: Provider configuration capabilities supported by the agent. |
||
| AgentCapabilities aclientp.schema.v2.capabilities Capabilities supported by the agent. |
||
| TextCommandInput aclientp.schema.v2.commands All text typed after the command name (and the following whitespace) is the input. |
||
| Command aclientp.schema.v2.commands A slash command the user invokes by including ``/name`` in a prompt. |
||
| Skill aclientp.schema.v2.commands **UNSTABLE**: An Agent Skill the user invokes with a ``skill`` content block. |
||
| SessionConfigSelectOption aclientp.schema.v2.config_options A possible value of a select config option. |
||
| SessionConfigSelectGroup aclientp.schema.v2.config_options A group of possible values of a select config option. |
||
| _ConfigOptionBase aclientp.schema.v2.config_options |
||
| _InitialConfigOptionBase aclientp.schema.v2.config_options |
||
| _SetConfigOptionBase aclientp.schema.v2.config_options |
||
| SetSessionConfigOptionResponse aclientp.schema.v2.config_options Response to ``session/set_config_option``. |
||
| TextContent aclientp.schema.v2.content Text provided to or from an LLM. All agents MUST support it in prompts. |
||
| ImageContent aclientp.schema.v2.content An image provided to or from an LLM. Requires the ``image`` prompt capability. |
||
| AudioContent aclientp.schema.v2.content Audio provided to or from an LLM. Requires the ``audio`` prompt capability. |
||
| ResourceLink aclientp.schema.v2.content A link to a resource the receiver may be able to read. All agents MUST support it. |
||
| TextResourceContents aclientp.schema.v2.content Text contents of a resource. |
||
| BlobResourceContents aclientp.schema.v2.content Binary contents of a resource. |
||
| EmbeddedResource aclientp.schema.v2.content Resource contents embedded in a prompt or tool call result. |
||
| SkillReference aclientp.schema.v2.content **UNSTABLE**: A skill the user invokes with a prompt. |
||
| CursorMessageAnchor aclientp.schema.v2.cursors **UNSTABLE**: A cursor anchored to a message; ``type`` names the kind of message. |
||
| CursorToolCallAnchor aclientp.schema.v2.cursors **UNSTABLE**: The cursor is next to a tool call. |
||
| CursorCompactionAnchor aclientp.schema.v2.cursors **UNSTABLE**: The cursor is next to a context compaction. |
||
| CursorForkCapabilities aclientp.schema.v2.cursors **UNSTABLE**: The cursor can be passed to ``session/fork`` as ``cursorId``. |
||
| CursorCapabilities aclientp.schema.v2.cursors **UNSTABLE**: The methods that currently accept a cursor. |
||
| CursorUpdate aclientp.schema.v2.cursors **UNSTABLE**: A session cursor upsert, keyed by ``cursor_id``. |
||
| EnumOption aclientp.schema.v2.elicitation A titled enum option with a const value, human-readable title, and optional description. |
||
| StringPropertySchema aclientp.schema.v2.elicitation Schema for string properties in an elicitation form. |
||
| NumberPropertySchema aclientp.schema.v2.elicitation Schema for number (floating-point) properties in an elicitation form. |
||
| IntegerPropertySchema aclientp.schema.v2.elicitation Schema for integer properties in an elicitation form. |
||
| BooleanPropertySchema aclientp.schema.v2.elicitation Schema for boolean properties in an elicitation form. |
||
| StringMultiSelectItems aclientp.schema.v2.elicitation String item schema for multi-select enum properties. |
||
| TitledMultiSelectItems aclientp.schema.v2.elicitation Items definition for titled multi-select enum properties. |
||
| MultiSelectPropertySchema aclientp.schema.v2.elicitation Schema for multi-select (array) properties in an elicitation form. |
||
| ElicitationSchema aclientp.schema.v2.elicitation Type-safe elicitation schema for requesting structured user input. |
||
| CompleteElicitationNotification aclientp.schema.v2.elicitation Notification sent by the agent when a URL-based elicitation is complete. |
||
| _ScopedRequest aclientp.schema.v2.elicitation An elicitation request, tied to a session or to a pending client request. |
||
| AcceptElicitationResponse aclientp.schema.v2.elicitation The user accepted and provided content. |
||
| DeclineElicitationResponse aclientp.schema.v2.elicitation The user declined. |
||
| CancelElicitationResponse aclientp.schema.v2.elicitation The elicitation was cancelled. |
||
| InitializeRequest aclientp.schema.v2.initialize Request parameters for the initialize method. |
||
| InitializeResponse aclientp.schema.v2.initialize Response to the ``initialize`` method. |
||
| McpServerHttp aclientp.schema.v2.mcp HTTP transport configuration for MCP. |
||
| McpServerStdio aclientp.schema.v2.mcp Stdio transport configuration for MCP. |
||
| McpServerAcp aclientp.schema.v2.mcp **UNSTABLE**: ACP transport configuration for MCP. |
||
| MessageMcpRequest aclientp.schema.v2.mcp **UNSTABLE**: Parameters of ``mcp/message``: an inner MCP request to the provider. |
||
| MessageMcpNotification aclientp.schema.v2.mcp **UNSTABLE**: Notification for an active inner MCP request, from provider to consumer. |
||
| MessageMcpResult aclientp.schema.v2.mcp **UNSTABLE**: Successful ``mcp/message`` outcome: an opaque inner MCP result. |
||
| MessageMcpError aclientp.schema.v2.mcp **UNSTABLE**: Successful ``mcp/message`` call whose inner MCP request failed. |
||
| _Chunk aclientp.schema.v2.messages |
||
| _MessageUpsert aclientp.schema.v2.messages |
||
| SessionMessage aclientp.schema.v2.messages An upsert of a message sent to or received from another session. |
||
| SessionMessageChunk aclientp.schema.v2.messages A content block appended to a session message. |
||
| _DiffChangeBase aclientp.schema.v2.tool_calls |
||
| DiffPatch aclientp.schema.v2.tool_calls Renderable patch text and its format. |
||
| Content aclientp.schema.v2.tool_calls A standard content block (text, image, resource) produced by a tool call. |
||
| Diff aclientp.schema.v2.tool_calls File changes produced by a tool call. |
||
| Terminal aclientp.schema.v2.tool_calls A display-only reference to an agent-owned terminal. |
||
| SessionReference aclientp.schema.v2.tool_calls A display-only reference to another session the tool call operates on, e.g. a subagent. |
||
| ToolCallLocation aclientp.schema.v2.tool_calls A file location a tool reads or modifies, for "follow-along" features. |
||
| ToolCallCancelCapabilities aclientp.schema.v2.tool_calls The tool call can be cancelled with ``tool_call/cancel``. |
||
| ToolCallCapabilities aclientp.schema.v2.tool_calls Client-initiated controls a tool call currently supports. |
||
| ToolCallUpdate aclientp.schema.v2.tool_calls A tool call upsert, keyed by ``tool_call_id``. |
||
| ToolCallContentChunk aclientp.schema.v2.tool_calls A content item appended to a tool call's content. |
||
| CancelToolCallRequest aclientp.schema.v2.tool_calls Parameters of ``tool_call/cancel``: cancel one tool call. |
||
| CancelToolCallResponse aclientp.schema.v2.tool_calls Response to ``tool_call/cancel``. |
||
| PermissionOption aclientp.schema.v2.permissions An option offered to the user. |
||
| ToolCallPermissionSubject aclientp.schema.v2.permissions Permission is requested before executing a tool call. |
||
| CommandPermissionSubject aclientp.schema.v2.permissions Permission is requested before running a command. |
||
| RequestPermissionRequest aclientp.schema.v2.permissions Parameters of ``session/request_permission``. |
||
| SelectedPermissionOutcome aclientp.schema.v2.permissions The user selected one of the offered options. |
||
| CancelledPermissionOutcome aclientp.schema.v2.permissions No option was selected, e.g. because the session's work was cancelled. |
||
| RequestPermissionResponse aclientp.schema.v2.permissions Response to ``session/request_permission``. |
||
| PlanEntry aclientp.schema.v2.plans A task or goal the agent intends to accomplish. |
||
| PlanItems aclientp.schema.v2.plans A plan as structured entries. |
||
| PlanMarkdown aclientp.schema.v2.plans **UNSTABLE**: A plan as raw markdown content. |
||
| PlanUpdate aclientp.schema.v2.plans New content of the plan identified by its ``plan_id``. |
||
| PlanRemoved aclientp.schema.v2.plans **UNSTABLE**: The plan with this ID was removed. |
||
| PromptRequest aclientp.schema.v2.prompt Parameters of ``session/prompt``: a user message for the session. |
||
| PromptResponse aclientp.schema.v2.prompt Acknowledges that the user message was inserted into the conversation. |
||
| BackgroundTerminal aclientp.schema.v2.prompt A process that keeps running after its tool call returned control to the model. |
||
| BackgroundToolCall aclientp.schema.v2.prompt Work of a tool call that continues without a process of its own, e.g. a watcher. |
||
| BackgroundSubagent aclientp.schema.v2.prompt A detached subagent session that has anything running. |
||
| _StateBase aclientp.schema.v2.prompt |
||
| ProviderCurrentConfig aclientp.schema.v2.providers **UNSTABLE**: Current effective non-secret routing configuration for a provider. |
||
| ProviderInfo aclientp.schema.v2.providers **UNSTABLE**: Information about a configurable LLM provider. |
||
| ListProvidersRequest aclientp.schema.v2.providers **UNSTABLE**: Request parameters for ``providers/list``. |
||
| ListProvidersResponse aclientp.schema.v2.providers **UNSTABLE**: Response to ``providers/list``. |
||
| SetProviderRequest aclientp.schema.v2.providers **UNSTABLE**: Request parameters for ``providers/set``. |
||
| SetProviderResponse aclientp.schema.v2.providers **UNSTABLE**: Response to ``providers/set``. |
||
| DisableProviderRequest aclientp.schema.v2.providers **UNSTABLE**: Request parameters for ``providers/disable``. |
||
| DisableProviderResponse aclientp.schema.v2.providers **UNSTABLE**: Response to ``providers/disable``. |
||
| SessionCancelCapabilities aclientp.schema.v2.subagents A subagent session's work can be cancelled (``session/cancel``) without ending it. |
||
| SubagentSessionCapabilities aclientp.schema.v2.subagents Client-initiated mutations permitted for a specific subagent session. |
||
| SubagentUpdate aclientp.schema.v2.subagents The parent session created and owns a child session, or the association changed. |
||
| TerminalOutput aclientp.schema.v2.terminals An authoritative replacement snapshot of terminal output bytes. |
||
| TerminalSize aclientp.schema.v2.terminals The size of an agent-owned terminal in character cells. |
||
| TerminalExitStatus aclientp.schema.v2.terminals Exit information for an agent-owned terminal. |
||
| TerminalCancelCapabilities aclientp.schema.v2.terminals Capability to cancel a terminal with ``terminal/cancel``. |
||
| TerminalCapabilities aclientp.schema.v2.terminals Client-initiated controls a terminal currently supports. |
||
| TerminalUpdate aclientp.schema.v2.terminals An upsert of an agent-owned terminal's state, keyed by ``terminal_id``. |
||
| TerminalOutputChunk aclientp.schema.v2.terminals A chunk of bytes appended to an agent-owned terminal's output. |
||
| CancelTerminalRequest aclientp.schema.v2.terminals Parameters of ``terminal/cancel``: cancel one terminal. |
||
| CancelTerminalResponse aclientp.schema.v2.terminals Response from cancelling a terminal. |
||
| AvailableCommandsUpdate aclientp.schema.v2.session_updates The available commands are ready or have changed. |
||
| ConfigOptionUpdate aclientp.schema.v2.session_updates The session's config options have changed. |
||
| SessionInfoUpdate aclientp.schema.v2.session_updates Partial update of session metadata; ``None`` clears a field. |
||
| UsageUpdate aclientp.schema.v2.session_updates Context window and cost of the session. |
||
| Notice aclientp.schema.v2.session_updates Fire-and-forget information for the user, not part of session history. |
||
| CompactionUpdate aclientp.schema.v2.session_updates A context compaction upsert, keyed by ``compaction_id``. |
||
| CompactionSummaryChunk aclientp.schema.v2.session_updates A content block appended to a compaction's summary. |
||
| ReplayComplete aclientp.schema.v2.session_updates The history replay requested by ``session/resume`` is complete. |
||
| PromptSuggestion aclientp.schema.v2.session_updates **UNSTABLE**: A prompt the agent predicts the user will send next. |
||
| PromptSuggestionsUpdate aclientp.schema.v2.session_updates **UNSTABLE**: Replaces the session's prompt suggestions. |
||
| UpdateSessionNotification aclientp.schema.v2.session_updates Parameters of ``session/update``: one update of a session. |
||
| SystemPrompt aclientp.schema.v2.sessions Client-provided system-level instructions for a session. |
||
| NewSessionRequest aclientp.schema.v2.sessions Request parameters for creating a new session. |
||
| NewSessionResponse aclientp.schema.v2.sessions Response from creating a new session. |
||
| ReplayFromStart aclientp.schema.v2.sessions Replay all retained conversation history from its first replayable entry. |
||
| ResumeSessionRequest aclientp.schema.v2.sessions Request parameters for resuming an existing session. |
||
| ResumeSessionResponse aclientp.schema.v2.sessions Response from resuming an existing session. |
||
| ForkSessionRequest aclientp.schema.v2.sessions **UNSTABLE**: Request parameters for forking an existing session. |
||
| ForkSessionResponse aclientp.schema.v2.sessions **UNSTABLE**: Response from forking an existing session. |
||
| CloseSessionRequest aclientp.schema.v2.sessions Request parameters for closing an active session. |
||
| CloseSessionResponse aclientp.schema.v2.sessions Response from closing a session. |
||
| CancelSessionNotification aclientp.schema.v2.sessions Notification to cancel a session's foreground work and its prompts not yet inserted. |
||
| ListSessionsRequest aclientp.schema.v2.sessions Request parameters for listing existing sessions. |
||
| SessionInfo aclientp.schema.v2.sessions Information about a session returned by ``session/list``. |
||
| ListSessionsResponse aclientp.schema.v2.sessions Response from listing sessions. |
||
| DeleteSessionRequest aclientp.schema.v2.sessions Request parameters for deleting an existing session from ``session/list``. |
||
| DeleteSessionResponse aclientp.schema.v2.sessions Response from deleting a session. |
||
| ArchiveSessionRequest aclientp.schema.v2.sessions **UNSTABLE**: Request parameters for archiving a session. |
||
| ArchiveSessionResponse aclientp.schema.v2.sessions **UNSTABLE**: Response from archiving a session. |
||
| UnarchiveSessionRequest aclientp.schema.v2.sessions **UNSTABLE**: Request parameters for unarchiving a session. |
||
| UnarchiveSessionResponse aclientp.schema.v2.sessions **UNSTABLE**: Response from unarchiving a session. |
||
| SessionStatusRequest aclientp.schema.v2.sessions **UNSTABLE**: Request parameters for checking the status of a session. |
||
| SessionStatusResponse aclientp.schema.v2.sessions **UNSTABLE**: Response from checking the status of a session. |
||
| SetSessionTitleRequest aclientp.schema.v2.sessions **UNSTABLE**: Request parameters for setting the title of a session. |
||
| SetSessionTitleResponse aclientp.schema.v2.sessions **UNSTABLE**: Response from setting the title of a session. |
||
| SessionOptionsRequest aclientp.schema.v2.sessions **UNSTABLE**: Parameters of ``session/options``. |
||
| SessionOptionsResponse aclientp.schema.v2.sessions **UNSTABLE**: Response from ``session/options``. |
||
| CancelRequestNotification aclientp.schema.v2.protocol Parameters of ``$/cancel_request``: cancel an ongoing request. |
||
| ProxySuccessorRequest aclientp.schema.v2.protocol **UNSTABLE**: Parameters of a ``proxy/successor`` request: a wrapped request. |
||
| ProxySuccessorNotification aclientp.schema.v2.protocol **UNSTABLE**: Parameters of a ``proxy/successor`` notification: a wrapped notification. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Schema aclientp.schema.v2.base Base class of all v2 models. |
⋔ Inheritance diagram¶
graph TD
95970868359040["base.AnnotatedObject"]
95970855946400["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970855946400 --> 95970868359040
95970851503232 --> 95970855946400
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: Schema
A v2 object with the _meta extension point.
Source code in src/aclientp/schema/v2/base.py
field_meta
class-attribute
instance-attribute
¶
Extension point for implementations. Omitted and null mean no metadata.
On upserts, _meta is a patch: omitted leaves it unchanged, null clears it,
and an object patches the stored metadata by top-level key (a key set to null
is removed, any other value replaces that key).