Expand description
Topology-driven multi-agent execution engine.
Provides TOML-defined topology configuration for sequential and parallel agent chains with file-mediated handoffs, bounded corrective loops, pre/post validation, and model tier selection.
Re-exports§
pub use error::PipelineError;
Modules§
- error
- Per-crate error type for
kernex-pipelines.
Structs§
- Loaded
Topology - A fully resolved topology: parsed TOML + all agent .md contents loaded.
- Phase
- A single phase in the pipeline.
- Phase
Group - A group of phases to be executed together.
- Retry
Config - Retry configuration for corrective loop phases.
- Topology
- Root topology document.
- Topology
Meta - Topology metadata header.
- Validation
Config - Pre-phase validation rules.
Enums§
- Phase
Tier - Which model tier a pipeline phase should use.
- Phase
Type - Phase execution behavior.
- Validation
Type - Validation strategies for pre-phase checks.
Functions§
- load_
topology - Load a topology by name from
{data_dir}/topologies/{name}/. - validate_
agent_ name - Validate an agent name. Same rules as topology names; called before joining the name into a filesystem path to prevent traversal via malicious TOPOLOGY.toml.
- validate_
topology_ name - Validate a topology name: alphanumeric + hyphens + underscores, max 64 chars. Rejects path traversal, shell metacharacters, empty names.