pub struct ToolCall {
pub name: String,
pub input: Value,
pub via: String,
pub plugin: Option<String>,
pub project_root: Option<PathBuf>,
}Expand description
The call being made, as a wrapper may see it. Read-only by design — see the module docs.
Fields§
§name: String§input: Value§via: StringWho made the call: model, RunCode, RunExt:<command> or
PluginCall:<function> of the package plugin, user for a /name
plugin command, skill for a skill’s inline command, host outside any turn.
plugin: Option<String>§project_root: Option<PathBuf>The session’s working directory (a worktree’s, in one) if it has a project.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ToolCall
impl Freeze for ToolCallwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCallwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ToolCall
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