pub struct TimerToolAdapter { /* private fields */ }Implementations§
Source§impl TimerToolAdapter
impl TimerToolAdapter
pub fn new(selection: TimerToolSelection) -> Self
pub fn selection(&self) -> TimerToolSelection
pub async fn execute_call(&self, call: FunctionCallRequest) -> FunctionResponse
Trait Implementations§
Source§impl Clone for TimerToolAdapter
impl Clone for TimerToolAdapter
Source§fn clone(&self) -> TimerToolAdapter
fn clone(&self) -> TimerToolAdapter
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 Debug for TimerToolAdapter
impl Debug for TimerToolAdapter
Source§impl PartialEq for TimerToolAdapter
impl PartialEq for TimerToolAdapter
Source§impl ToolExecutor for TimerToolAdapter
impl ToolExecutor for TimerToolAdapter
Source§fn execute<'a>(
&'a self,
call: FunctionCallRequest,
) -> BoxFuture<'a, Result<FunctionResponse, ToolExecutionError>>
fn execute<'a>( &'a self, call: FunctionCallRequest, ) -> BoxFuture<'a, Result<FunctionResponse, ToolExecutionError>>
Execute one server-requested function call.
Source§impl ToolProvider for TimerToolAdapter
impl ToolProvider for TimerToolAdapter
Source§fn advertised_tools(&self) -> Option<Vec<Tool>>
fn advertised_tools(&self) -> Option<Vec<Tool>>
Full
setup.tools payload advertised for the next session connect.Source§fn descriptors(&self) -> Vec<ToolDescriptor>
fn descriptors(&self) -> Vec<ToolDescriptor>
User-facing catalog metadata for this provider’s tools.
Source§fn specifications(&self) -> Vec<ToolSpecification>
fn specifications(&self) -> Vec<ToolSpecification>
Function-level capabilities for locally executable tools.
impl Copy for TimerToolAdapter
impl Eq for TimerToolAdapter
impl StructuralPartialEq for TimerToolAdapter
Auto Trait Implementations§
impl Freeze for TimerToolAdapter
impl RefUnwindSafe for TimerToolAdapter
impl Send for TimerToolAdapter
impl Sync for TimerToolAdapter
impl Unpin for TimerToolAdapter
impl UnsafeUnpin for TimerToolAdapter
impl UnwindSafe for TimerToolAdapter
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