mod config#

module config#

Canonical adaptive config and diagnostics types.

Structs and Unions

struct AcgComponentConfig#

Typed helper for the built-in ACG component.

provider: String#

Which provider plugin to activate (e.g. “anthropic”, “openai”, “passthrough”).

observation_window: usize#

Rolling observation window size. Default: 100.

priority: i32#

LLM execution intercept priority. Default: 50.

stability_thresholds: crate::acg::stability::StabilityThresholds#

Stability classification thresholds used by the learner.

Traits implemented

impl Default for AcgComponentConfig#
struct AdaptiveConfig#

Canonical config document for the adaptive plugin component.

version: u32#

Adaptive config schema version.

agent_id: Option<String>#

Optional explicit agent identifier used by adaptive state.

state: Option<StateConfig>#

Shared state backend configuration.

telemetry: Option<TelemetryComponentConfig>#

Built-in adaptive telemetry settings.

adaptive_hints: Option<AdaptiveHintsComponentConfig>#

Built-in LLM hint injection settings.

tool_parallelism: Option<ToolParallelismComponentConfig>#

Built-in tool scheduling settings.

acg: Option<AcgComponentConfig>#

Adaptive Cache Governor settings.

policy: ConfigPolicy#

Adaptive-local unsupported-config policy.

Traits implemented

impl Default for AdaptiveConfig#
struct AdaptiveHintsComponentConfig#

Typed helper for adaptive hints settings.

priority: i32#

Intercept priority. Lower values run first.

break_chain: bool#

Whether later request intercepts should be skipped after this one runs.

inject_header: bool#

Whether to inject the adaptive hints header.

inject_body_path: String#

JSON path used when injecting request-body hints.

Traits implemented

impl Default for AdaptiveHintsComponentConfig#
struct BackendSpec#

Dynamic backend selection. config is backend-specific.

kind: String#

Backend kind such as in_memory or redis.

config: Map<String, Json>#

Backend-specific JSON object.

Implementations

impl BackendSpec#

Functions

fn in_memory() -> Self#

Creates an in-memory backend spec.

struct StateConfig#

Shared state configuration consumed by adaptive features that need persistence.

backend: BackendSpec#

Backend selection for adaptive state.

struct TelemetryComponentConfig#

Typed helper for telemetry settings.

subscriber_name: Option<String>#

Optional subscriber registration name override.

learners: Vec<String>#

Enabled learner identifiers.

struct ToolParallelismComponentConfig#

Typed helper for tool parallelism settings.

priority: i32#

Intercept priority. Lower values run first.

mode: String#

Scheduling mode such as observe_only, inject_hints, or schedule.

Traits implemented

impl Default for ToolParallelismComponentConfig#