Skip to main content

OrchestrationConfig

Struct OrchestrationConfig 

Source
pub struct OrchestrationConfig {
Show 23 fields pub enabled: bool, pub max_tasks: u32, pub max_parallel: u32, pub default_failure_strategy: String, pub default_max_retries: u32, pub task_timeout_secs: u64, pub planner_provider: ProviderName, pub planner_max_tokens: u32, pub dependency_context_budget: usize, pub confirm_before_execute: bool, pub aggregator_max_tokens: u32, pub deferral_backoff_ms: u64, pub plan_cache: PlanCacheConfig, pub topology_selection: bool, pub verify_provider: ProviderName, pub verify_max_tokens: u32, pub max_replans: u32, pub verify_completeness: bool, pub tool_provider: ProviderName, pub completeness_threshold: f32, pub cascade_routing: bool, pub cascade_failure_threshold: f32, pub tree_optimized_dispatch: bool,
}
Expand description

Configuration for the task orchestration subsystem ([orchestration] TOML section).

Fields§

§enabled: bool

Enable the orchestration subsystem.

§max_tasks: u32

Maximum number of tasks in a single graph.

§max_parallel: u32

Maximum number of tasks that can run in parallel.

§default_failure_strategy: String

Default failure strategy for all tasks unless overridden per-task.

§default_max_retries: u32

Default number of retries for the retry failure strategy.

§task_timeout_secs: u64

Timeout in seconds for a single task. 0 means no timeout.

§planner_provider: ProviderName

Provider name from [[llm.providers]] for planning LLM calls. Empty string = use the agent’s primary provider.

§planner_max_tokens: u32

Maximum tokens budget hint for planner responses. Reserved for future use when per-call token limits are added to the LlmProvider::chat API.

§dependency_context_budget: usize

Total character budget for cross-task dependency context injection.

§confirm_before_execute: bool

Whether to show a confirmation prompt before executing a plan.

§aggregator_max_tokens: u32

Maximum tokens budget for aggregation LLM calls. Default: 4096.

§deferral_backoff_ms: u64

Base backoff for ConcurrencyLimit retries; grows exponentially (×2 each attempt) up to 5 s.

§plan_cache: PlanCacheConfig

Plan template caching configuration.

§topology_selection: bool

Enable topology-aware concurrency selection. When true, TopologyClassifier adjusts max_parallel based on the DAG structure. Default: false (opt-in).

§verify_provider: ProviderName

Provider name from [[llm.providers]] for verification LLM calls. Empty string = use the agent’s primary provider. Should be a cheap/fast provider.

§verify_max_tokens: u32

Maximum tokens budget for verification LLM calls. Default: 1024.

§max_replans: u32

Maximum number of replan cycles per graph execution. Default: 2.

Prevents infinite verify-replan loops. 0 = disable replan (verification still runs, gaps are logged only).

§verify_completeness: bool

Enable post-task completeness verification. Default: false (opt-in).

When true, completed tasks are evaluated by PlanVerifier. Task stays Completed during verification; downstream tasks are unblocked immediately. Verification is best-effort and does not gate dispatch.

§tool_provider: ProviderName

Provider name from [[llm.providers]] for tool-dispatch routing. When set, tool-heavy tasks prefer this provider over the primary. Prefer mid-tier models (e.g., qwen2.5:14b) for reliability per arXiv:2601.16280. Empty string = use the primary provider.

§completeness_threshold: f32

Minimum completeness score (0.0–1.0) for the plan to be accepted without replanning. Default: 0.7. When the verifier reports confidence < completeness_threshold AND gaps exist, a replan cycle is triggered. Used by both per-task and whole-plan verification. Values outside [0.0, 1.0] are rejected at startup by Config::validate().

§cascade_routing: bool

Enable cascade-aware routing for Mixed-topology DAGs. Requires topology_selection = true. When enabled, tasks in failing subtrees are deprioritized in favour of healthy branches. Default: false (opt-in).

§cascade_failure_threshold: f32

Failure rate threshold (0.0–1.0) above which a DAG region is considered “cascading”. Must be in (0.0, 1.0]. Default: 0.5.

§tree_optimized_dispatch: bool

Enable tree-optimized dispatch for FanOut/FanIn topologies. Sorts the ready queue by critical-path distance (deepest tasks first) to minimize end-to-end latency. Default: false (opt-in).

Trait Implementations§

Source§

impl Clone for OrchestrationConfig

Source§

fn clone(&self) -> OrchestrationConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OrchestrationConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OrchestrationConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for OrchestrationConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for OrchestrationConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,