pub struct ToolCustom {
pub name: String,
pub description: String,
pub format: String,
}
Fields§
§name: String
The name of the custom tool, used to identify it in tool calls.
description: String
Optional description of the custom tool, used to provide more context.
format: String
The input format for the custom tool. Default is unconstrained text.
Trait Implementations§
Source§impl Clone for ToolCustom
impl Clone for ToolCustom
Source§fn clone(&self) -> ToolCustom
fn clone(&self) -> ToolCustom
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 ToolCustom
impl Debug for ToolCustom
Auto Trait Implementations§
impl Freeze for ToolCustom
impl RefUnwindSafe for ToolCustom
impl Send for ToolCustom
impl Sync for ToolCustom
impl Unpin for ToolCustom
impl UnwindSafe for ToolCustom
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