pub struct PreToolCall {
pub name: String,
pub input: ToolInput,
}Expand description
Fired before a tool call is executed.
Fields§
§name: StringTool name requested by the model.
input: ToolInputTool input payload passed to the executor.
Trait Implementations§
Source§impl Clone for PreToolCall
impl Clone for PreToolCall
Source§fn clone(&self) -> PreToolCall
fn clone(&self) -> PreToolCall
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 PreToolCall
impl Debug for PreToolCall
Source§impl Event for PreToolCall
impl Event for PreToolCall
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 PreToolCall
impl RefUnwindSafe for PreToolCall
impl Send for PreToolCall
impl Sync for PreToolCall
impl Unpin for PreToolCall
impl UnsafeUnpin for PreToolCall
impl UnwindSafe for PreToolCall
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