pub struct ToolInput {
pub data: Value,
pub tool_name: String,
pub agent_id: String,
pub user_id: Option<String>,
}Expand description
Input parameters received by a tool handler.
Wraps the JSON input from the agent with convenience accessors.
Fields§
§data: ValueRaw JSON input from the agent.
tool_name: StringThe tool name being invoked.
agent_id: StringThe agent ID making the request.
user_id: Option<String>The user ID making the request, if known. None for system-
initiated work that didn’t opt into a synthetic identity. Skills
that read per-user credentials via vault::get don’t need this —
the host applies user scoping automatically — but it’s exposed
here for skills that want to surface “I am acting on behalf of X”
in their tool output.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolInput
impl RefUnwindSafe for ToolInput
impl Send for ToolInput
impl Sync for ToolInput
impl Unpin for ToolInput
impl UnsafeUnpin for ToolInput
impl UnwindSafe for ToolInput
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