pub enum ToolInput {
String(String),
Dict(HashMap<String, Value>),
ToolCall(ToolCall),
}Expand description
Input type for tools - can be a string, dict, or ToolCall.
Variants§
String(String)
A simple string input.
Dict(HashMap<String, Value>)
A dictionary of arguments.
ToolCall(ToolCall)
A full tool call.
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 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