pub struct ToolStore { /* private fields */ }Implementations§
Source§impl ToolStore
impl ToolStore
pub fn register_tool( &self, name: &str, description: Option<&str>, parameters_schema: Option<Value>, version: Option<&str>, ) -> Result<String>
pub fn get_tool(&self, name: &str) -> Result<Tool>
pub fn list_tools(&self) -> Result<Vec<Tool>>
pub fn delete_tool(&self, name: &str) -> Result<()>
pub fn log_tool_call( &self, session_id: Option<&str>, tool_name: &str, arguments: Option<Value>, result: Option<Value>, error: Option<&str>, latency_ms: Option<i64>, ) -> Result<String>
pub fn get_tool_calls( &self, session_id: Option<&str>, tool_name: Option<&str>, limit: Option<usize>, ) -> Result<Vec<ToolCall>>
Auto Trait Implementations§
impl Freeze for ToolStore
impl RefUnwindSafe for ToolStore
impl Send for ToolStore
impl Sync for ToolStore
impl Unpin for ToolStore
impl UnsafeUnpin for ToolStore
impl UnwindSafe for ToolStore
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