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 ToolCall
impl Move for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
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