pub struct EventLoopConfig {
pub prompt: Option<String>,
pub prompt_file: String,
pub completion_promise: String,
pub max_iterations: u32,
pub max_runtime_seconds: u64,
pub max_cost_usd: Option<f64>,
pub max_consecutive_failures: u32,
pub starting_hat: Option<String>,
pub starting_event: Option<String>,
}Expand description
Event loop configuration.
Fields§
§prompt: Option<String>Inline prompt text (mutually exclusive with prompt_file).
prompt_file: StringPath to the prompt file.
completion_promise: StringString that signals loop completion.
max_iterations: u32Maximum number of iterations before timeout.
max_runtime_seconds: u64Maximum runtime in seconds.
max_cost_usd: Option<f64>Maximum cost in USD before stopping.
max_consecutive_failures: u32Stop after this many consecutive failures.
starting_hat: Option<String>Starting hat for multi-hat mode (deprecated, use starting_event instead).
starting_event: Option<String>Event to publish after Ralph completes initial coordination.
When custom hats are defined, Ralph handles task.start to do gap analysis
and planning, then publishes this event to delegate to the first hat.
Example: starting_event: "tdd.start" for TDD workflow.
If not specified and hats are defined, Ralph will determine the appropriate event from the hat topology.
Trait Implementations§
Source§impl Clone for EventLoopConfig
impl Clone for EventLoopConfig
Source§fn clone(&self) -> EventLoopConfig
fn clone(&self) -> EventLoopConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventLoopConfig
impl Debug for EventLoopConfig
Source§impl Default for EventLoopConfig
impl Default for EventLoopConfig
Source§impl<'de> Deserialize<'de> for EventLoopConfig
impl<'de> Deserialize<'de> for EventLoopConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventLoopConfig
impl RefUnwindSafe for EventLoopConfig
impl Send for EventLoopConfig
impl Sync for EventLoopConfig
impl Unpin for EventLoopConfig
impl UnwindSafe for EventLoopConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more