#[non_exhaustive]pub struct UnderstandingConfig {
pub plan_limits: PlanLimits,
pub turn_limits: TurnLimits,
pub transcript_turns: Option<usize>,
pub briefing_budget: BriefingBudget,
pub budget: Budget,
pub settings: Settings,
pub tasks: TaskProfiles,
}Expand description
How a turn is understood: the limits on what it may ask, the conversation shown, the budget of its model tasks, which acts are verified, and each task kind’s settings.
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.plan_limits: PlanLimitsSize limits on what one turn may be understood to ask.
turn_limits: TurnLimitsSize limits on the turn input.
transcript_turns: Option<usize>How many past turns are loaded, or None for all of them.
briefing_budget: BriefingBudgetHow much of a workflow’s per-phase guidance reaches a task, per record.
budget: BudgetWhat understanding one turn may spend.
settings: SettingsWhich acts are verified, and how much conversation extraction sees.
tasks: TaskProfilesEach task kind’s model, sampling, votes, repairs and escalation.
Implementations§
Source§impl UnderstandingConfig
impl UnderstandingConfig
Sourcepub const fn conservative() -> Self
pub const fn conservative() -> Self
No limits, the whole conversation, the shipped budget, settings and profiles.
Sourcepub fn with_plan_limits(self, plan_limits: PlanLimits) -> Self
pub fn with_plan_limits(self, plan_limits: PlanLimits) -> Self
Returns a copy with other plan limits.
Sourcepub fn with_turn_limits(self, turn_limits: TurnLimits) -> Self
pub fn with_turn_limits(self, turn_limits: TurnLimits) -> Self
Returns a copy with other turn limits.
Sourcepub fn with_transcript_turns(self, transcript_turns: Option<usize>) -> Self
pub fn with_transcript_turns(self, transcript_turns: Option<usize>) -> Self
Returns a copy loading at most transcript_turns past turns.
Sourcepub fn with_briefing_budget(self, budget: BriefingBudget) -> Self
pub fn with_briefing_budget(self, budget: BriefingBudget) -> Self
Returns a copy with another briefing budget.
Sourcepub fn with_budget(self, budget: Budget) -> Self
pub fn with_budget(self, budget: Budget) -> Self
Returns a copy with another task budget.
Sourcepub fn with_settings(self, settings: Settings) -> Self
pub fn with_settings(self, settings: Settings) -> Self
Returns a copy with other pipeline settings.
Sourcepub fn with_tasks(self, tasks: TaskProfiles) -> Self
pub fn with_tasks(self, tasks: TaskProfiles) -> Self
Returns a copy with other task profiles.
Sourcepub const fn max_questions(&self) -> Option<usize>
pub const fn max_questions(&self) -> Option<usize>
The question limit, when one is set.