pub struct InteractiveSettingsUpdate { /* private fields */ }Expand description
Runtime settings applied by an interactive run at the next model-request boundary.
Implementations§
Source§impl InteractiveSettingsUpdate
impl InteractiveSettingsUpdate
Sourcepub fn with_generation_config(self, generation_config: GenerationConfig) -> Self
pub fn with_generation_config(self, generation_config: GenerationConfig) -> Self
Replaces the generation configuration used by subsequent model requests.
Sourcepub fn with_primary_model(self, primary_model: InteractivePrimaryModel) -> Self
pub fn with_primary_model(self, primary_model: InteractivePrimaryModel) -> Self
Replaces the primary provider and model used by subsequent model requests.
Sourcepub fn with_role_model(
self,
role: RuntimeModelRole,
model: Option<InteractivePrimaryModel>,
) -> Self
pub fn with_role_model( self, role: RuntimeModelRole, model: Option<InteractivePrimaryModel>, ) -> Self
Replaces or clears a role-specific provider/model/effort override (such as
ContextCompaction or ApprovalReview). Passing None falls back to primary.
Sourcepub fn with_subagents(self, subagents: InteractiveSubagentSettings) -> Self
pub fn with_subagents(self, subagents: InteractiveSubagentSettings) -> Self
Replaces subagent admission and concurrency settings.
Sourcepub fn with_automatic_compaction(
self,
automatic_compaction: CompactionConfig,
) -> Self
pub fn with_automatic_compaction( self, automatic_compaction: CompactionConfig, ) -> Self
Replaces automatic compaction policy for subsequent model requests.
Sourcepub fn with_context_window_tokens(
self,
context_window_tokens: Option<NonZeroU64>,
) -> Self
pub fn with_context_window_tokens( self, context_window_tokens: Option<NonZeroU64>, ) -> Self
Replaces or clears the explicit context-window override for subsequent requests.
Sourcepub fn with_max_parallel_tool_calls(self, limit: NonZeroUsize) -> Self
pub fn with_max_parallel_tool_calls(self, limit: NonZeroUsize) -> Self
Replaces the maximum concurrent parallel tool calls per tool batch.
Sourcepub fn with_permission_review_mode(self, mode: PermissionReviewMode) -> Self
pub fn with_permission_review_mode(self, mode: PermissionReviewMode) -> Self
Replaces the live permission review mode for subsequent tool executions.
Sourcepub fn with_permission_admission_source(
self,
source: Arc<dyn PermissionAdmissionSource>,
) -> Self
pub fn with_permission_admission_source( self, source: Arc<dyn PermissionAdmissionSource>, ) -> Self
Supplies or replaces the host permission admission source used by host-reviewed modes.