pub enum Effect {
Show 15 variants
AgentInvocation {
role: AgentRole,
agent: String,
model: Option<String>,
prompt: String,
},
InitializeAgentChain {
role: AgentRole,
},
GeneratePlan {
iteration: u32,
},
RunDevelopmentIteration {
iteration: u32,
},
RunReviewPass {
pass: u32,
},
RunFixAttempt {
pass: u32,
},
RunRebase {
phase: RebasePhase,
target_branch: String,
},
ResolveRebaseConflicts {
strategy: ConflictStrategy,
},
GenerateCommitMessage,
CreateCommit {
message: String,
},
SkipCommit {
reason: String,
},
ValidateFinalState,
SaveCheckpoint {
trigger: CheckpointTrigger,
},
CleanupContext,
RestorePromptPermissions,
}Expand description
Effects represent side-effect operations.
The reducer determines which effect to execute next based on state. Effect handlers execute effects and emit events.
Variants§
AgentInvocation
InitializeAgentChain
GeneratePlan
RunDevelopmentIteration
RunReviewPass
RunFixAttempt
RunRebase
ResolveRebaseConflicts
Fields
§
strategy: ConflictStrategyGenerateCommitMessage
CreateCommit
SkipCommit
ValidateFinalState
SaveCheckpoint
Fields
§
trigger: CheckpointTriggerCleanupContext
RestorePromptPermissions
Restore PROMPT.md write permissions after pipeline completion.
This effect is emitted during the Finalizing phase to restore write permissions on PROMPT.md so users can edit it normally after Ralph exits.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Effect
impl<'de> Deserialize<'de> for Effect
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 Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more