#[non_exhaustive]pub struct OrchestratorConfig {
pub mode: OrchestrationMode,
pub understanding: UnderstandingConfig,
pub attachments: AttachmentConfig,
pub narration: NarrationConfig,
pub interaction: InteractionConfig,
pub execution: ExecutionConfig,
pub observability: ObservabilityConfig,
pub privacy: PrivacyConfig,
pub effort: EffortConfig,
}Expand description
Everything the runtime needs to know before it handles a turn (Appendix A).
Provider routing is deliberately absent: it belongs to the provider layer and
this crate depends on turnframe-core alone.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: OrchestrationModeHow much autonomy the model gets.
understanding: UnderstandingConfigHow the turn is understood.
attachments: AttachmentConfigHow much of the turn’s files reaches a model.
narration: NarrationConfigHow the assistant talks.
interaction: InteractionConfigHow cards behave.
execution: ExecutionConfigHow commands execute.
observability: ObservabilityConfigWhat is measured and recorded.
privacy: PrivacyConfigWhat may leave the runtime.
effort: EffortConfigThe default effort, and what each level changes.
Implementations§
Source§impl OrchestratorConfig
impl OrchestratorConfig
Sourcepub const fn conservative() -> OrchestratorConfig
pub const fn conservative() -> OrchestratorConfig
Every section at its conservative default, in
OrchestrationMode::Deterministic.
Sourcepub fn with_effort(self, effort: EffortConfig) -> OrchestratorConfig
pub fn with_effort(self, effort: EffortConfig) -> OrchestratorConfig
Returns a copy with another default effort and other level changes.
Sourcepub const fn with_attachments(
self,
attachments: AttachmentConfig,
) -> OrchestratorConfig
pub const fn with_attachments( self, attachments: AttachmentConfig, ) -> OrchestratorConfig
Returns a copy with another attachment budget.
Sourcepub fn with_mode(self, mode: OrchestrationMode) -> OrchestratorConfig
pub fn with_mode(self, mode: OrchestrationMode) -> OrchestratorConfig
Returns a copy in another orchestration mode.
Sourcepub fn with_understanding(
self,
understanding: UnderstandingConfig,
) -> OrchestratorConfig
pub fn with_understanding( self, understanding: UnderstandingConfig, ) -> OrchestratorConfig
Returns a copy with another understanding section.
Sourcepub const fn with_narration(
self,
narration: NarrationConfig,
) -> OrchestratorConfig
pub const fn with_narration( self, narration: NarrationConfig, ) -> OrchestratorConfig
Returns a copy with another narration section.
Sourcepub const fn with_interaction(
self,
interaction: InteractionConfig,
) -> OrchestratorConfig
pub const fn with_interaction( self, interaction: InteractionConfig, ) -> OrchestratorConfig
Returns a copy with another interaction section.
Sourcepub const fn with_execution(
self,
execution: ExecutionConfig,
) -> OrchestratorConfig
pub const fn with_execution( self, execution: ExecutionConfig, ) -> OrchestratorConfig
Returns a copy with another execution section.
Sourcepub const fn with_observability(
self,
observability: ObservabilityConfig,
) -> OrchestratorConfig
pub const fn with_observability( self, observability: ObservabilityConfig, ) -> OrchestratorConfig
Returns a copy with another observability section.
Sourcepub const fn with_privacy(self, privacy: PrivacyConfig) -> OrchestratorConfig
pub const fn with_privacy(self, privacy: PrivacyConfig) -> OrchestratorConfig
Returns a copy with another privacy section.
Sourcepub fn policy_snapshot(&self, base: PolicySnapshot) -> PolicySnapshot
pub fn policy_snapshot(&self, base: PolicySnapshot) -> PolicySnapshot
Tightens base with the risk classes the mode refuses (§11.4).
The result only ever forbids more than base did: a mode cannot widen a
policy snapshot, and origin_satisfies
keeps its own floor regardless of either.
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Checks every section and the rules that span sections.
Cross-section rules:
- storing model prompts while the replay record is switched off asks for prompts nothing will ever write;
- sandboxed autonomy without a replay record leaves the one mode where the model drives writes with no way to explain what it did (I20).
Trait Implementations§
Source§impl Clone for OrchestratorConfig
impl Clone for OrchestratorConfig
Source§fn clone(&self) -> OrchestratorConfig
fn clone(&self) -> OrchestratorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrchestratorConfig
impl Debug for OrchestratorConfig
Source§impl Default for OrchestratorConfig
impl Default for OrchestratorConfig
Source§fn default() -> OrchestratorConfig
fn default() -> OrchestratorConfig
Source§impl<'de> Deserialize<'de> for OrchestratorConfig
impl<'de> Deserialize<'de> for OrchestratorConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OrchestratorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OrchestratorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for OrchestratorConfig
impl PartialEq for OrchestratorConfig
Source§impl Serialize for OrchestratorConfig
impl Serialize for OrchestratorConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for OrchestratorConfig
Auto Trait Implementations§
impl Forget for OrchestratorConfig
impl Freeze for OrchestratorConfig
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
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> ⓘ
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