pub struct ToolInput {
pub arguments: HashMap<String, Value>,
}Expand description
Represents the input arguments provided for a tool execution at runtime.
The Agent parses the JSON argument string from ToolFunction::arguments
into this structure before passing it to ToolProvider::execute_tool.
Fields§
§arguments: HashMap<String, Value>A map holding the argument names and their corresponding JSON values.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolInput
impl<'de> Deserialize<'de> for ToolInput
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 ToolInput
impl RefUnwindSafe for ToolInput
impl Send for ToolInput
impl Sync for ToolInput
impl Unpin 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