Expand description
§ralph-core
Core orchestration functionality for the Ralph Orchestrator framework.
This crate provides:
- The main orchestration loop for coordinating multiple agents
- Configuration loading and management
- State management for agent sessions
- Message routing between agents
- Terminal capture for session recording
- Benchmark task definitions and workspace isolation
Re-exports§
pub use task_definition::TaskDefinition;pub use task_definition::TaskDefinitionError;pub use task_definition::TaskSetup;pub use task_definition::TaskSuite;pub use task_definition::Verification;pub use workspace::CleanupPolicy;pub use workspace::TaskWorkspace;pub use workspace::VerificationResult;pub use workspace::WorkspaceError;pub use workspace::WorkspaceInfo;pub use workspace::WorkspaceManager;
Modules§
- task_
definition - Task definition types for benchmark harness.
- testing
- Testing utilities for deterministic E2E tests.
- workspace
- Workspace isolation for benchmark tasks.
Structs§
- CliCapture
- A writer that captures all output while forwarding to an inner writer.
- CliCapture
Pair - A pair of capture wrappers for stdout and stderr.
- CliConfig
- CLI backend configuration.
- Core
Config - Core paths and settings shared across all hats.
- Event
- A simplified event for reading from JSONL.
- Event
History - Reader for event history files.
- Event
Logger - Logger that writes events to a JSONL file.
- Event
Loop - The main event loop orchestrator.
- Event
Loop Config - Event loop configuration.
- Event
Metadata - Metadata for an event topic.
- Event
Parser - Parser for extracting events from CLI output.
- Event
Reader - Reads new events from
.agent/events.jsonlsince last read. - Event
Record - A logged event record for debugging.
- HatConfig
- Configuration for a single hat.
- HatInfo
- Information about a hat for prompt generation.
- HatRegistry
- Registry for managing and creating hats from configuration.
- HatTopology
- Hat topology for multi-hat mode prompt generation.
- Hatless
Ralph - Hatless Ralph - the constant coordinator.
- Instruction
Builder - Builds instructions for custom hats.
- Loop
State - Current state of the event loop.
- Malformed
Line - Information about a malformed JSONL line.
- Parse
Result - Result of parsing events from a JSONL file.
- Player
Config - Configuration for session playback.
- Ralph
Config - Top-level configuration for Ralph Orchestrator.
- Record
- A timestamped record in the JSONL session file.
- Session
Player - Plays back recorded sessions.
- Session
Recorder - Records session events to a JSONL output.
- Summary
Writer - Writes the loop summary file on termination.
- Timestamped
Record - A parsed record with timing information for replay.
Enums§
- HatBackend
- Backend configuration for a hat.
- Replay
Mode - Replay mode for session playback.
- Termination
Reason - Reason the event loop terminated.