Crate agent_client_protocol

Source

Macros§

dispatch_notification
dispatch_request

Structs§

AgentCapabilities
AgentMethodNames
AgentSide
AgentSideConnection
Annotations
Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
AudioContent
Audio provided to or from an LLM.
AuthMethod
AuthMethodId
AuthenticateRequest
BlobResourceContents
CancelNotification
ClientCapabilities
Capabilities supported by the client
ClientMethodNames
ClientSide
ClientSideConnection
Diff
EmbeddedResource
The contents of a resource, embedded into a prompt or tool call result.
EnvVariable
Error
ErrorCode
FileSystemCapability
ImageContent
An image provided to or from an LLM.
InitializeRequest
InitializeResponse
LoadSessionRequest
McpServer
NewSessionRequest
NewSessionResponse
PermissionOption
PermissionOptionId
Plan
PlanEntry
A single entry in the execution plan.
PromptRequest
PromptResponse
ProtocolVersion
Protocol version identifier.
ReadTextFileRequest
ReadTextFileResponse
RequestPermissionRequest
RequestPermissionResponse
ResourceLink
A resource that the server is capable of reading, included in a prompt or tool call result.
SessionId
SessionNotification
TextContent
Text provided to or from an LLM.
TextResourceContents
ToolCall
ToolCallId
ToolCallLocation
ToolCallUpdate
ToolCallUpdateFields
WriteTextFileRequest

Enums§

AgentNotification
Notifications the agent sends to the client
AgentRequest
Requests the agent sends to the client
AgentResponse
Responses the agent sends to the client
ClientNotification
Notifications the client sends to the agent
ClientRequest
Requests the client sends to the agent
ClientResponse
Responses the client sends to the agent
ContentBlock
EmbeddedResourceResource
PermissionOptionKind
PlanEntryPriority
Priority levels for plan entries.
PlanEntryStatus
Status of a plan entry in the execution flow.
RequestPermissionOutcome
Role
The sender or recipient of messages and data in a conversation.
SessionUpdate
StopReason
ToolCallContent
ToolCallStatus
ToolKind

Constants§

AGENT_METHOD_NAMES
AUTHENTICATE_METHOD_NAME
CLIENT_METHOD_NAMES
FS_READ_TEXT_FILE_METHOD_NAME
FS_WRITE_TEXT_FILE_METHOD_NAME
INITIALIZE_METHOD_NAME
SESSION_CANCEL_METHOD_NAME
SESSION_LOAD_METHOD_NAME
SESSION_NEW_METHOD_NAME
SESSION_PROMPT_METHOD_NAME
SESSION_REQUEST_PERMISSION_METHOD_NAME
SESSION_UPDATE_NOTIFICATION
V0
V1
VERSION

Traits§

Agent
Client