pub struct ToolRegistry { /* private fields */ }Expand description
Registry for available tools
Implementations§
Source§impl ToolRegistry
impl ToolRegistry
Sourcepub fn to_openai_tools(&self) -> Vec<Value>
pub fn to_openai_tools(&self) -> Vec<Value>
Generate tool schemas for OpenAI function calling
Trait Implementations§
Source§impl Debug for ToolRegistry
impl Debug for ToolRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for ToolRegistry
impl !UnwindSafe for ToolRegistry
impl Freeze for ToolRegistry
impl Send for ToolRegistry
impl Sync for ToolRegistry
impl Unpin for ToolRegistry
impl UnsafeUnpin for ToolRegistry
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