refactor: replace _call_model with ReActAgent, remove dead code
- process_message(): create per-request ReActAgent with shared singletons - _call_sub_agent(): use ReActAgent instead of manual message building - Remove _call_model() (~83 lines), _build_history_section() (~12 lines) - Remove fallback routing logic (~19 lines) - Remove unused imports (json, ToolUseBlock, ToolResultBlock) - Add ReActAgent and InMemoryMemory imports Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
1 changed file
with
35 additions
and
144 deletions
-
Please register or sign in to post a comment