pub struct ToolContext {
pub name: String,
pub input_schema: Value,
pub output_schema: Option<Value>,
pub request_id: Option<String>,
pub arguments: Option<HashMap<String, Value>>,
}Expand description
Tool context provided to UI
Fields§
§name: StringTool name
input_schema: ValueTool input schema
output_schema: Option<Value>Tool output schema (optional)
request_id: Option<String>JSON-RPC request ID for the tool call that triggered this UI
arguments: Option<HashMap<String, Value>>Arguments passed to the tool (optional)
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<'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 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