pub struct ToolExecutionResult {
pub request_id: String,
pub tool_call_id: String,
pub output: Value,
pub success: bool,
pub error: Option<String>,
}Expand description
Result of a client-side tool execution, sent back via client/response.
Fields§
§request_id: StringMust match the request_id from ToolExecutionRequest.
tool_call_id: StringID of the tool call that was executed.
output: ValueTool output (structured or text).
success: boolWhether execution succeeded.
error: Option<String>Error message when success is false.
Trait Implementations§
Source§impl Clone for ToolExecutionResult
impl Clone for ToolExecutionResult
Source§fn clone(&self) -> ToolExecutionResult
fn clone(&self) -> ToolExecutionResult
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 ToolExecutionResult
impl Debug for ToolExecutionResult
Source§impl<'de> Deserialize<'de> for ToolExecutionResult
impl<'de> Deserialize<'de> for ToolExecutionResult
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 ToolExecutionResult
impl RefUnwindSafe for ToolExecutionResult
impl Send for ToolExecutionResult
impl Sync for ToolExecutionResult
impl Unpin for ToolExecutionResult
impl UnsafeUnpin for ToolExecutionResult
impl UnwindSafe for ToolExecutionResult
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