pub struct ToolRequest {
pub name: String,
pub args: String,
pub reply: Sender<String>,
}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.
reply: Sender<String>Reply channel — the handler sends the result string here.
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