pub struct Orchestrator<L: LlmProvider> {
pub config: OrchestratorConfig,
/* private fields */
}Expand description
Orchestrator manages hierarchical agent execution
Fields§
§config: OrchestratorConfigConfiguration
Implementations§
Source§impl<L: LlmProvider + 'static> Orchestrator<L>
impl<L: LlmProvider + 'static> Orchestrator<L>
Sourcepub fn new(
llm: Arc<L>,
config: OrchestratorConfig,
persistence_layer: Option<Arc<dyn EvolutionStore>>,
) -> Self
pub fn new( llm: Arc<L>, config: OrchestratorConfig, persistence_layer: Option<Arc<dyn EvolutionStore>>, ) -> Self
Create a new orchestrator
Sourcepub fn add_anchor(&mut self, anchor: Arc<dyn AnchorBackend>)
pub fn add_anchor(&mut self, anchor: Arc<dyn AnchorBackend>)
Add an anchoring backend
Sourcepub async fn cleanup_expired(&self) -> usize
pub async fn cleanup_expired(&self) -> usize
Cleanup expired agents to prevent memory leaks Returns the number of agents removed
Sourcepub async fn agent_count(&self) -> usize
pub async fn agent_count(&self) -> usize
Get current agent count
Auto Trait Implementations§
impl<L> !Freeze for Orchestrator<L>
impl<L> !RefUnwindSafe for Orchestrator<L>
impl<L> Send for Orchestrator<L>
impl<L> Sync for Orchestrator<L>
impl<L> Unpin for Orchestrator<L>
impl<L> !UnwindSafe for Orchestrator<L>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more