pub struct ToolCallResult {
pub tool_use_id: String,
pub tool_name: String,
pub result: ToolResult,
}Expand description
Result of executing a tool call.
Fields§
§tool_use_id: String§tool_name: String§result: ToolResultImplementations§
Source§impl ToolCallResult
impl ToolCallResult
Sourcepub fn to_content_block(&self) -> ContentBlock
pub fn to_content_block(&self) -> ContentBlock
Convert to a content block for sending back to the API.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolCallResult
impl RefUnwindSafe for ToolCallResult
impl Send for ToolCallResult
impl Sync for ToolCallResult
impl Unpin for ToolCallResult
impl UnsafeUnpin for ToolCallResult
impl UnwindSafe for ToolCallResult
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