pub struct PostToolCall {
pub name: String,
pub input: ToolInput,
pub result: Option<ToolResult>,
pub error: Option<String>,
}Expand description
Fired after a tool call completes.
Fields§
§name: StringTool name requested by the model.
input: ToolInputTool input payload passed to the executor.
result: Option<ToolResult>Successful tool result, when execution completed.
error: Option<String>Error text, when execution failed.
Trait Implementations§
Source§impl Clone for PostToolCall
impl Clone for PostToolCall
Source§fn clone(&self) -> PostToolCall
fn clone(&self) -> PostToolCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostToolCall
impl Debug for PostToolCall
Source§impl Event for PostToolCall
impl Event for PostToolCall
Source§fn event_type(&self) -> EventType
fn event_type(&self) -> EventType
Return the event type discriminator for this event.
Auto Trait Implementations§
impl Freeze for PostToolCall
impl RefUnwindSafe for PostToolCall
impl Send for PostToolCall
impl Sync for PostToolCall
impl Unpin for PostToolCall
impl UnsafeUnpin for PostToolCall
impl UnwindSafe for PostToolCall
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