|
Step 2: Extract AgentTurnContext dataclass from run_stream()
Move 10 turn-level local variables from run_stream() into AgentTurnContext: - turn_start, tool_call_count, turn_tokens, subagent_tokens - stall_no_todo, stall_repeat_tools, prev_tool_sigs - known_failed, replan_msg, injected_fact_ids This makes run_stream() readable and prepares the ground for AntiStallMonitor (Step 3) which will consume this context. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
|---|
|
|
| navi/core/agent.py |
|---|
| navi/core/agent_run_context.py 0 → 100644 |
|---|