pub struct NullProvider { /* private fields */ }Expand description
A sentinel provider that always returns ToolError::NotRegistered.
Used as a placeholder when no real provider has been registered for a tool.
Implementations§
Trait Implementations§
Source§impl ToolProvider for NullProvider
impl ToolProvider for NullProvider
Source§fn schema(&self) -> &ToolSchema
fn schema(&self) -> &ToolSchema
Schema describing the tool this provider exposes.
Source§fn call(&self, _input: Value) -> Result<Value, ToolError>
fn call(&self, _input: Value) -> Result<Value, ToolError>
Execute the tool with the given JSON input, returning JSON output.
Source§fn call_async<'a>(&'a self, input: Value) -> ToolFuture<'a, Value>
fn call_async<'a>(&'a self, input: Value) -> ToolFuture<'a, Value>
Async execution hook. Read more
Source§fn capabilities(&self) -> Vec<Capability>
fn capabilities(&self) -> Vec<Capability>
Capabilities supported by this provider (default: empty).
Auto Trait Implementations§
impl Freeze for NullProvider
impl RefUnwindSafe for NullProvider
impl Send for NullProvider
impl Sync for NullProvider
impl Unpin for NullProvider
impl UnwindSafe for NullProvider
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