Skip to main content

Module config

Module config 

Source
Expand description

§Stage: Declarative Pipeline Configuration

§Responsibility

Parse, validate, and hot-reload TOML pipeline configuration files. Users define an entire pipeline topology declaratively and run it with:

cargo run -- --config pipeline.toml

§Guarantees

  • Deterministic: same TOML input always produces the same PipelineConfig
  • Validated: all semantic constraints are checked before a config is accepted
  • Type-safe: invalid field combinations are caught at parse time via serde
  • Hot-reloadable: file changes are detected and validated before applying
  • Schema-exportable: JSON Schema output enables IDE autocomplete

§NOT Responsible For

  • Building the runtime pipeline from config (that belongs to stages)
  • Managing worker connections (that belongs to worker)
  • Metrics collection (that belongs to metrics)

Modules§

loader
Configuration file loading.
validation
Configuration validation engine.
watcher
Configuration hot-reload watcher.

Structs§

AssembleStageConfig
Assembly stage configuration.
ChannelSizes
Per-channel capacity overrides for the five inter-stage pipeline channels.
DeduplicationConfig
Deduplication configuration for request coalescing.
InferenceStageConfig
Inference stage configuration.
ObservabilityConfig
Observability configuration: logging, metrics endpoint, and tracing.
PipelineConfig
Root configuration for a pipeline instance.
PipelineSection
Pipeline identity and version metadata.
PostProcessStageConfig
Post-processing stage configuration.
RagStageConfig
RAG stage configuration.
RateLimitConfig
Rate limiting configuration.
ResilienceConfig
Resilience configuration for retries and circuit breaking.
StagesConfig
Configuration for all five pipeline stages.
StreamStageConfig
Output streaming stage configuration.
WorkerConfig
Per-worker connection and model configuration.
WorkersConfig
Per-worker configuration map, keyed by provider name.

Enums§

LogFormat
Log output format.
Provider
Provider identifier enum used in per-worker configuration.
WorkerKind
Supported model worker backends.