pub struct ToolContext {
pub name: String,
pub arguments: Option<HashMap<String, Value>>,
pub server_id: Option<String>,
pub is_builtin: Option<bool>,
pub description: Option<String>,
}Expand description
Tool-call context forwarded to the guard endpoint.
Fields§
§name: StringTool name (e.g. "shell", "read_file").
arguments: Option<HashMap<String, Value>>Tool arguments as an arbitrary JSON object.
server_id: Option<String>MCP server ID the tool belongs to.
is_builtin: Option<bool>Whether this is a built-in (non-MCP) tool.
description: Option<String>Human-readable tool description.
Trait Implementations§
Source§impl Clone for ToolContext
impl Clone for ToolContext
Source§fn clone(&self) -> ToolContext
fn clone(&self) -> ToolContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolContext
impl Debug for ToolContext
Source§impl Default for ToolContext
impl Default for ToolContext
Source§fn default() -> ToolContext
fn default() -> ToolContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolContext
impl<'de> Deserialize<'de> for ToolContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolContext
impl RefUnwindSafe for ToolContext
impl Send for ToolContext
impl Sync for ToolContext
impl Unpin for ToolContext
impl UnsafeUnpin for ToolContext
impl UnwindSafe for ToolContext
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