#[non_exhaustive]pub struct ToolInvocation<'a> {
pub call: &'a CallIdentity,
pub name: &'a str,
pub arguments: &'a Value,
pub turn: usize,
pub message_count: usize,
}Expand description
A tool call the model made, before it runs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.call: &'a CallIdentityThe call and the agent making it.
name: &'a strThe tool.
arguments: &'a ValueThe arguments as the model made them.
turn: usizeThe turn the call belongs to.
message_count: usizeNumber of recent conversation messages currently in memory.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for ToolInvocation<'a>
impl<'a> Freeze for ToolInvocation<'a>
impl<'a> Move for ToolInvocation<'a>
impl<'a> RefUnwindSafe for ToolInvocation<'a>
impl<'a> Send for ToolInvocation<'a>
impl<'a> Sync for ToolInvocation<'a>
impl<'a> Unpin for ToolInvocation<'a>
impl<'a> UnsafeUnpin for ToolInvocation<'a>
impl<'a> UnwindSafe for ToolInvocation<'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