Skip to main content

Module request

Module request 

Source
Expand description

Agent-to-client requests (ApprovalRequest, ToolCallRequest, etc.).

Re-exports§

pub use crate::protocol::event::ApprovalResponseKind;

Structs§

ApprovalRequest
Approval request sent by the agent.
ApprovalResponse
Response to an ApprovalRequest.
HookRequest
Hook request sent by the agent.
HookResponse
Response to a HookRequest.
QuestionItem
A single question item.
QuestionOption
An option for a question.
QuestionRequest
Question request sent by the agent.
QuestionResponse
Response to a QuestionRequest.
ToolCallRequest
Tool call request sent by the agent.
ToolCallResponse
Response to a ToolCallRequest.

Enums§

Request
A request from the agent to the client, sent via the request method.
SourceKind
Source of an approval request.