pub struct ToolArg {
pub name: String,
pub value: String,
pub is_string: bool,
}Expand description
One named argument of a parsed tool call.
Fields§
§name: StringArgument name from the name="..." attribute.
value: StringRaw argument value (bytes between the parameter tags).
is_string: boolTrue when the parameter carried string="true".
Trait Implementations§
impl Eq for ToolArg
impl StructuralPartialEq for ToolArg
Auto Trait Implementations§
impl Freeze for ToolArg
impl RefUnwindSafe for ToolArg
impl Send for ToolArg
impl Sync for ToolArg
impl Unpin for ToolArg
impl UnsafeUnpin for ToolArg
impl UnwindSafe for ToolArg
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