pub struct PlanExecTool { /* private fields */ }Expand description
PlanExecTool is a domain-agnostic tool for executing previously created plans.
Implementations§
Source§impl PlanExecTool
impl PlanExecTool
pub fn new( step_executor: Arc<dyn StepExecutor>, plan_store: Arc<dyn PlanStore>, recovery: Arc<dyn RecoveryStrategy>, ) -> PlanExecTool
Trait Implementations§
Source§impl Clone for PlanExecTool
impl Clone for PlanExecTool
Source§fn clone(&self) -> PlanExecTool
fn clone(&self) -> PlanExecTool
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 Tool for PlanExecTool
impl Tool for PlanExecTool
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 = Result<ToolOutput, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
PlanExecTool: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for PlanExecTool
impl !UnwindSafe for PlanExecTool
impl Freeze for PlanExecTool
impl Send for PlanExecTool
impl Sync for PlanExecTool
impl Unpin for PlanExecTool
impl UnsafeUnpin for PlanExecTool
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