Crate agentic_coding_protocol

Source

Structs§

AgentConnection
A connection to a separate agent process over the ACP protocol.
AuthenticateParams
Triggers authentication on the agent side.
AuthenticateResponse
CancelSendMessageParams
cancelSendMessage allows the client to request that the agent stop running. The agent should resolve or reject the current sendUserMessage call.
CancelSendMessageResponse
ClientConnection
A connection to a separate client process over the ACP protocol.
Diff
Error
ErrorCode
InitializeParams
Initialize sets up the agent’s state. It should be called before any other method, and no other methods should be called until it has completed.
InitializeResponse
Method
PlanEntry
A single entry in the execution plan.
ProtocolVersion
PushToolCallParams
pushToolCall allows the agent to start a tool call when it does not need to request permission to do so.
PushToolCallResponse
ReadTextFileParams
ReadTextFileResponse
RequestToolCallConfirmationParams
Request confirmation before running a tool
RequestToolCallConfirmationResponse
SendUserMessageParams
sendUserMessage allows the user to send a message to the agent. This method should complete after the agent is finished, during which time the agent may update the client by calling streamAssistantMessageChunk and other methods.
SendUserMessageResponse
StreamAssistantMessageChunkParams
Streams part of an assistant response to the client
StreamAssistantMessageChunkResponse
ToolCallId
ToolCallLocation
UpdatePlanParams
Parameters for updating the current execution plan.
UpdatePlanResponse
UpdateToolCallParams
updateToolCall allows the agent to update the content and status of the tool call.
UpdateToolCallResponse
WriteTextFileParams
WriteTextFileResponse

Enums§

AnyAgentRequest
AnyAgentResult
AnyClientRequest
AnyClientResult
AssistantMessageChunk
ContextServer
Icon
PlanEntryPriority
Priority levels for plan entries.
PlanEntryStatus
Status of a plan entry in the execution flow.
ToolCallConfirmation
ToolCallConfirmationOutcome
ToolCallContent
ToolCallStatus
UserMessageChunk
A part in a user message

Statics§

AGENT_METHODS
CLIENT_METHODS

Traits§

Agent
AgentRequest
AnyRequest
Client
ClientRequest