pub struct ReturnDirectTool { /* private fields */ }Expand description
A tool wrapper that signals the agent should return the tool’s output directly to the user without further LLM processing.
Implementations§
Trait Implementations§
Source§impl Tool for ReturnDirectTool
impl Tool for ReturnDirectTool
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn call<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn parameters(&self) -> Option<Value>
fn as_tool_definition(&self) -> ToolDefinition
Auto Trait Implementations§
impl Freeze for ReturnDirectTool
impl !RefUnwindSafe for ReturnDirectTool
impl Send for ReturnDirectTool
impl Sync for ReturnDirectTool
impl Unpin for ReturnDirectTool
impl UnsafeUnpin for ReturnDirectTool
impl !UnwindSafe for ReturnDirectTool
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