Skip to content

Commit bad5663

Browse files
committed
Refactor purple agent: Remove legacy code and make max_turns per-request
- Remove legacy src/agent.py (ShopperAgent with manual action parsing) - Remove legacy src/llm_client.py (replaced by ADK's LiteLLM wrapper) - Remove tests/test_agent.py (43 legacy tests) - Clean up src/messenger.py: reduce from 383 to 35 lines - Keep only get_message_text() function (actively used) - Remove unused: create_message, merge_parts, Messenger class, send_message, parsing utilities - Update src/shopping_agent.py: make max_turns configurable per request - Accept max_turns in task_data (defaults to instance default) - Pass to _execute_runner() as parameter - Clean up legacy tests in test_executor.py and test_integration.py - Add tests for per-request max_turns configuration Impact: - Removed ~2,180 lines of dead code - All 103 tests passing - Codebase focused on ADK-based architecture only
1 parent 80e9b74 commit bad5663

8 files changed

Lines changed: 106 additions & 2286 deletions

File tree

purple_agent/src/agent.py

Lines changed: 0 additions & 777 deletions
This file was deleted.

purple_agent/src/llm_client.py

Lines changed: 0 additions & 299 deletions
This file was deleted.

0 commit comments

Comments
 (0)