pub struct PlanOrchestrator { /* private fields */ }Expand description
PlanOrchestrator is a domain-agnostic tool for creating execution plans.
It delegates plan generation to a PlanGenerator implementation and
stores the plan via a PlanStore.
Implementations§
Source§impl PlanOrchestrator
impl PlanOrchestrator
pub fn new( plan_generator: Arc<dyn PlanGenerator>, step_executor: Arc<dyn StepExecutor>, plan_store: Arc<dyn PlanStore>, ) -> PlanOrchestrator
pub fn with_step_executor(&mut self, step_executor: Arc<dyn StepExecutor>)
Trait Implementations§
Source§impl Clone for PlanOrchestrator
impl Clone for PlanOrchestrator
Source§fn clone(&self) -> PlanOrchestrator
fn clone(&self) -> PlanOrchestrator
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 PlanOrchestrator
impl Tool for PlanOrchestrator
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,
PlanOrchestrator: 'async_trait,
Auto Trait Implementations§
impl Freeze for PlanOrchestrator
impl !RefUnwindSafe for PlanOrchestrator
impl Send for PlanOrchestrator
impl Sync for PlanOrchestrator
impl Unpin for PlanOrchestrator
impl UnsafeUnpin for PlanOrchestrator
impl !UnwindSafe for PlanOrchestrator
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