pub struct MockMetadataTool;Available on crate feature
test-utils only.Expand description
A tool whose success carries a MockRequestId in its result metadata.
Registered under the name with_meta.
Trait Implementations§
Source§impl Clone for MockMetadataTool
impl Clone for MockMetadataTool
Source§fn clone(&self) -> MockMetadataTool
fn clone(&self) -> MockMetadataTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Tool for MockMetadataTool
impl Tool for MockMetadataTool
Source§type Error = MockToolError
type Error = MockToolError
Typed error returned by direct calls to this tool. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Model-facing description.
Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema for arguments.
Auto Trait Implementations§
impl Freeze for MockMetadataTool
impl RefUnwindSafe for MockMetadataTool
impl Send for MockMetadataTool
impl Sync for MockMetadataTool
impl Unpin for MockMetadataTool
impl UnsafeUnpin for MockMetadataTool
impl UnwindSafe for MockMetadataTool
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