pub enum ToolFormat {
OpenAI,
Anthropic,
}Expand description
Different tool definition formats used by providers
Variants§
OpenAI
OpenAI format: { “type”: “function”, “function”: { “name”: “…”, “parameters”: {…} } }
Anthropic
Anthropic format: { “name”: “…”, “description”: “…”, “input_schema”: {…} }
Trait Implementations§
Source§impl Clone for ToolFormat
impl Clone for ToolFormat
Source§fn clone(&self) -> ToolFormat
fn clone(&self) -> ToolFormat
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 ToolFormat
impl Debug for ToolFormat
Source§impl PartialEq for ToolFormat
impl PartialEq for ToolFormat
impl Copy for ToolFormat
impl Eq for ToolFormat
impl StructuralPartialEq for ToolFormat
Auto Trait Implementations§
impl Freeze for ToolFormat
impl RefUnwindSafe for ToolFormat
impl Send for ToolFormat
impl Sync for ToolFormat
impl Unpin for ToolFormat
impl UnwindSafe for ToolFormat
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