pub struct ToolRequest {
pub name: String,
pub args: String,
pub agent: String,
pub reply: Sender<String>,
pub task_id: Option<u64>,
pub sender: CompactString,
}Expand description
A single tool call request sent by the agent to the runtime’s tool handler.
Fields§
§name: StringTool name as returned by the model.
args: StringJSON-encoded arguments string.
agent: StringName of the agent that made this call.
reply: Sender<String>Reply channel — the handler sends the result string here.
task_id: Option<u64>Task ID of the calling task, if running within a task context. Set by the daemon when dispatching task-bound tool calls.
sender: CompactStringSender identity of the user who triggered this agent run. Empty for local/owner sessions.
Auto Trait Implementations§
impl Freeze for ToolRequest
impl !RefUnwindSafe for ToolRequest
impl Send for ToolRequest
impl Sync for ToolRequest
impl Unpin for ToolRequest
impl UnsafeUnpin for ToolRequest
impl !UnwindSafe for ToolRequest
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