pub struct EstimateTokens { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Tool for EstimateTokens
impl Tool for EstimateTokens
fn spec(&self) -> ToolSpec
Source§fn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Whether this tool only reads data without side effects.
Default: false (conservative). Override to true for read-only tools.
fn execute<'life0, 'async_trait>(
&'life0 self,
arguments: Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for EstimateTokens
impl RefUnwindSafe for EstimateTokens
impl Send for EstimateTokens
impl Sync for EstimateTokens
impl Unpin for EstimateTokens
impl UnsafeUnpin for EstimateTokens
impl UnwindSafe for EstimateTokens
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