feat(events): RefinementIterationEvent + orchestration state counter
This commit is contained in:
+5
@@ -3,6 +3,7 @@ package com.correx.core.kernel.orchestration
|
||||
import com.correx.core.events.events.ChatSessionStartedEvent
|
||||
import com.correx.core.events.events.OrchestrationPausedEvent
|
||||
import com.correx.core.events.events.OrchestrationResumedEvent
|
||||
import com.correx.core.events.events.RefinementIterationEvent
|
||||
import com.correx.core.events.events.RetryAttemptedEvent
|
||||
import com.correx.core.events.events.StoredEvent
|
||||
import com.correx.core.events.events.TransitionExecutedEvent
|
||||
@@ -60,6 +61,10 @@ class DefaultOrchestrationReducer : OrchestrationReducer {
|
||||
failureReason = null,
|
||||
)
|
||||
|
||||
is RefinementIterationEvent -> state.copy(
|
||||
refinementIterations = state.refinementIterations + (p.cycleKey to p.iteration),
|
||||
)
|
||||
|
||||
else -> state
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user