(agent: AgentV2.Selection)
| 161 | new TurnTransitionError({ _tag: "ContinueAfterOverflowCompaction", step }) |
| 162 | |
| 163 | const loadSystemContext = (agent: AgentV2.Selection) => |
| 164 | Effect.all([systemContext.load(), skillGuidance.load(agent), referenceGuidance.load()], { |
| 165 | concurrency: "unbounded", |
| 166 | }).pipe(Effect.map(SystemContext.combine)) |
| 167 | |
| 168 | const runTurnAttempt = Effect.fn("SessionRunner.runTurn")(function* ( |
| 169 | sessionID: SessionSchema.ID, |