pub struct AfterToolCall<'a> {
pub assistant_message: &'a AssistantMessage,
pub tool_call: &'a ToolCall,
pub args: &'a Value,
pub result: &'a ToolResult,
pub is_error: bool,
pub parent_tool_call_id: Option<&'a str>,
}Expand description
A tool call that ran.
Fields§
§assistant_message: &'a AssistantMessageThe response that made the call.
tool_call: &'a ToolCallThe call as the model made it.
args: &'a ValueValidated arguments.
result: &'a ToolResultWhat the tool returned.
is_error: boolWhether the result is an error.
parent_tool_call_id: Option<&'a str>The tool call that made this call, for calls a tool made.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AfterToolCall<'a>
impl<'a> RefUnwindSafe for AfterToolCall<'a>
impl<'a> Send for AfterToolCall<'a>
impl<'a> Sync for AfterToolCall<'a>
impl<'a> Unpin for AfterToolCall<'a>
impl<'a> UnsafeUnpin for AfterToolCall<'a>
impl<'a> UnwindSafe for AfterToolCall<'a>
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