pub struct ToolExecutionRequest {
pub request_id: String,
pub tool_call: ToolCallRecord,
}Expand description
Server-to-client tool execution request (arrives via server/request SSE event).
When the ACP agent needs the client to run a tool on its behalf it emits a
server/request SSE event containing this payload. The client must execute
the tool and reply with ToolExecutionResult via client/response.
Fields§
§request_id: StringUnique request identifier used to correlate the response.
tool_call: ToolCallRecordThe tool call the agent wants the client to execute.
Trait Implementations§
Source§impl Clone for ToolExecutionRequest
impl Clone for ToolExecutionRequest
Source§fn clone(&self) -> ToolExecutionRequest
fn clone(&self) -> ToolExecutionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolExecutionRequest
impl Debug for ToolExecutionRequest
Source§impl<'de> Deserialize<'de> for ToolExecutionRequest
impl<'de> Deserialize<'de> for ToolExecutionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolExecutionRequest
impl RefUnwindSafe for ToolExecutionRequest
impl Send for ToolExecutionRequest
impl Sync for ToolExecutionRequest
impl Unpin for ToolExecutionRequest
impl UnsafeUnpin for ToolExecutionRequest
impl UnwindSafe for ToolExecutionRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more