pub struct AutoContinueTool;Expand description
Pure orchestration signal tool with zero domain dependency.
When the agent encounters an error in the previous tool execution and has found a solution or retry strategy, or when it needs to execute multiple long tasks in sequence, it can call this tool to request the system to automatically continue to the next turn without waiting for user reply.
Implementations§
Trait Implementations§
Source§impl Clone for AutoContinueTool
impl Clone for AutoContinueTool
Source§fn clone(&self) -> AutoContinueTool
fn clone(&self) -> AutoContinueTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutoContinueTool
impl Debug for AutoContinueTool
Source§impl Default for AutoContinueTool
impl Default for AutoContinueTool
Source§fn default() -> AutoContinueTool
fn default() -> AutoContinueTool
Returns the “default value” for a type. Read more
Source§impl Tool for AutoContinueTool
impl Tool for AutoContinueTool
fn name(&self) -> &'static str
fn definition(&self) -> Value
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: &'life1 Value,
_ctx: &'life2 ToolContext,
) -> Pin<Box<dyn Future<Output = AgentResult<ToolOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn as_framework_tool(&self) -> Option<&dyn FrameworkTool>
fn as_framework_tool(&self) -> Option<&dyn FrameworkTool>
Return
Some(&dyn FrameworkTool) if this tool is a framework-internal tool
that needs engine infrastructure injection (EventBus).
Default returns None — user-defined tools need not override this.Auto Trait Implementations§
impl Freeze for AutoContinueTool
impl RefUnwindSafe for AutoContinueTool
impl Send for AutoContinueTool
impl Sync for AutoContinueTool
impl Unpin for AutoContinueTool
impl UnsafeUnpin for AutoContinueTool
impl UnwindSafe for AutoContinueTool
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