pub struct GetTimeTool;Trait Implementations§
Source§impl<'de> Deserialize<'de> for GetTimeTool
impl<'de> Deserialize<'de> for GetTimeTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GetTimeTool
impl Serialize for GetTimeTool
Source§impl Tool for GetTimeTool
impl Tool for GetTimeTool
Source§const NAME: &'static str = "get_current_time"
const NAME: &'static str = "get_current_time"
The name of the tool. This name should be unique.
Source§async fn definition(&self, _prompt: String) -> ToolDefinition
async fn definition(&self, _prompt: String) -> ToolDefinition
A method returning the tool definition. The user prompt can be used to
tailor the definition to the specific use case.
Auto Trait Implementations§
impl Freeze for GetTimeTool
impl RefUnwindSafe for GetTimeTool
impl Send for GetTimeTool
impl Sync for GetTimeTool
impl Unpin for GetTimeTool
impl UnwindSafe for GetTimeTool
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