pub struct OrchestratorConfig {
pub enabled: bool,
pub max_context_tokens: usize,
pub auto_optimize: bool,
pub enable_metrics: bool,
pub session_timeout_seconds: u64,
pub enable_smart_retrieval: bool,
pub smart_retrieval_config: SmartRetrievalConfig,
pub ctx_size: u32,
}Expand description
Configuration for the orchestrator
Fields§
§enabled: bool§max_context_tokens: usize§auto_optimize: bool§enable_metrics: bool§session_timeout_seconds: u64§enable_smart_retrieval: boolEnable smart retrieval optimization (default: true)
smart_retrieval_config: SmartRetrievalConfigSmart retrieval configuration
ctx_size: u32Model context window size in tokens — 0 means not set (use defaults)
Implementations§
Source§impl OrchestratorConfig
impl OrchestratorConfig
Sourcepub fn from_ctx_size(ctx_size: u32) -> Self
pub fn from_ctx_size(ctx_size: u32) -> Self
Derive token limits from the model’s context window. 75% of CTX_SIZE is the ceiling for the total context sent to the LLM, leaving 25% headroom for the model’s own generation output.
Trait Implementations§
Source§impl Clone for OrchestratorConfig
impl Clone for OrchestratorConfig
Source§fn clone(&self) -> OrchestratorConfig
fn clone(&self) -> OrchestratorConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 OrchestratorConfig
impl Debug for OrchestratorConfig
Auto Trait Implementations§
impl Freeze for OrchestratorConfig
impl RefUnwindSafe for OrchestratorConfig
impl Send for OrchestratorConfig
impl Sync for OrchestratorConfig
impl Unpin for OrchestratorConfig
impl UnsafeUnpin for OrchestratorConfig
impl UnwindSafe for OrchestratorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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