pub struct CurrentDatetimeTool;Expand description
Tool for getting the current date and time
This tool returns the current datetime with optional formatting. It’s useful when the LLM needs to know the current time or date.
§Examples
ⓘ
use mojentic::llm::tools::current_datetime_tool::CurrentDatetimeTool;
let tool = CurrentDatetimeTool;
let args = HashMap::new();
let result = tool.run(&args)?;
// result contains current_datetime, timestamp, and timezoneImplementations§
Trait Implementations§
Source§impl Clone for CurrentDatetimeTool
impl Clone for CurrentDatetimeTool
Source§fn clone(&self) -> CurrentDatetimeTool
fn clone(&self) -> CurrentDatetimeTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CurrentDatetimeTool
impl Default for CurrentDatetimeTool
Auto Trait Implementations§
impl Freeze for CurrentDatetimeTool
impl RefUnwindSafe for CurrentDatetimeTool
impl Send for CurrentDatetimeTool
impl Sync for CurrentDatetimeTool
impl Unpin for CurrentDatetimeTool
impl UnwindSafe for CurrentDatetimeTool
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