#[non_exhaustive]pub struct SessionConfigDescription {Show 17 fields
pub model: String,
pub tool_surface: ToolSurface,
pub generation: GenerationOptions,
pub cache: CacheDirective,
pub retry: RetryPolicy,
pub limits: TurnLimits,
pub attempt_timeout: Option<Duration>,
pub unknown_outcome: UnknownOutcomeConfig,
pub tool_output_limits: ToolOutputLimits,
pub tool_output_limits_overrides: HashMap<String, ToolOutputLimits>,
pub call_timeout: Option<Duration>,
pub window_budget: WindowBudget,
pub compaction_configured: bool,
pub frame_counter_configured: bool,
pub artifact_store_configured: bool,
pub truncation_counter_configured: bool,
pub session: SessionConfig,
}Expand description
The comparable description of one assembled configuration: the plain-data
projection of TurnRunOptions plus the session coordination config.
Restore re-derives the description from the newly assembled options and rejects a mismatch — the same model ref, tool surface, and execution options must be in force, so a checkpoint cannot silently resume under a swapped model or narrowed surface. Ports the description cannot compare by value (the interaction seam, the gateway, the executor, the concrete compaction / counter implementations behind the presence flags) stay the harness’s assembly responsibility: this description pins what was configured, not the identity of behavior objects behind it.
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.model: StringThe model the runs invoke (ModelRef as its raw string).
tool_surface: ToolSurfaceThe tool surface advertised on the first model phase.
generation: GenerationOptionsSampling parameters sent with every attempt.
cache: CacheDirectivePrompt-cache instruction.
retry: RetryPolicyRetry schedule for failed model attempts.
limits: TurnLimitsPer-turn loop bounds.
attempt_timeout: Option<Duration>Per-model-attempt budget.
unknown_outcome: UnknownOutcomeConfigUnknown-outcome continuation configuration.
tool_output_limits: ToolOutputLimitsFallback tool-output truncation limit.
tool_output_limits_overrides: HashMap<String, ToolOutputLimits>Per-tool-name truncation-limit overrides.
call_timeout: Option<Duration>Per-tool-call deadline.
window_budget: WindowBudgetFrame-compaction trigger thresholds.
compaction_configured: boolWhether a compaction implementation is configured.
frame_counter_configured: boolWhether a frame token counter is configured.
artifact_store_configured: boolWhether a tool-output artifact store is configured.
truncation_counter_configured: boolWhether a truncation-estimation counter is configured.
session: SessionConfigThe session coordination config (retention capacity, work deadline).
Implementations§
Source§impl SessionConfigDescription
impl SessionConfigDescription
Sourcepub fn of(options: &TurnRunOptions, config: &SessionConfig) -> Self
pub fn of(options: &TurnRunOptions, config: &SessionConfig) -> Self
Describe an assembled configuration — the projection restore compares
against, and the description Session::checkpoint records.
Trait Implementations§
Source§impl Clone for SessionConfigDescription
impl Clone for SessionConfigDescription
Source§fn clone(&self) -> SessionConfigDescription
fn clone(&self) -> SessionConfigDescription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more