pub struct CurrentTimeTool;Expand description
current_time — the wall clock, ISO-8601 plus timezone.
Trait Implementations§
Source§impl Debug for CurrentTimeTool
impl Debug for CurrentTimeTool
Source§impl Default for CurrentTimeTool
impl Default for CurrentTimeTool
Source§fn default() -> CurrentTimeTool
fn default() -> CurrentTimeTool
Returns the “default value” for a type. Read more
Source§impl Tool for CurrentTimeTool
impl Tool for CurrentTimeTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
The built-in description. May be overridden via
crate::Config.Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema describing the tool’s input object.
Source§fn structured_output(&self) -> bool
fn structured_output(&self) -> bool
Whether a successful textual result is also a complete JSON value
that protocol adapters should expose as structured output. Text
remains the model-facing representation, preserving compatibility.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
CurrentTimeTool: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
CurrentTimeTool: 'async_trait,
Run the tool. Returns text to feed back to the model.
Auto Trait Implementations§
impl Freeze for CurrentTimeTool
impl RefUnwindSafe for CurrentTimeTool
impl Send for CurrentTimeTool
impl Sync for CurrentTimeTool
impl Unpin for CurrentTimeTool
impl UnsafeUnpin for CurrentTimeTool
impl UnwindSafe for CurrentTimeTool
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