Simone Garau
a47ce46ea9
feat: Add comprehensive toolkit instructions and improve agent prompts
...
- Create detailed markdown instructions for all toolkits:
* market_instructions.md: 6 tools with VWAP aggregation, selection strategies
* news_instructions.md: 4 tools with sentiment analysis guidelines
* social_instructions.md: 2 tools with platform-specific notes
* plan_memory_instructions.md: 4 tools with workflow patterns and best practices
* symbols_instructions.md: 2 tools with symbol resolution and search
- Update all toolkit classes to load instructions from external .md files:
* MarketAPIsTool, NewsAPIsTool, SocialAPIsTool
* PlanMemoryTool (moved from agents to api/tools)
* CryptoSymbolsTools
- Enhance agent prompts with detailed tool usage guidance:
* team_market.md: Expanded tool descriptions, asset conversion, time ranges
* team_news.md: Added query formulation, limit guidelines, error handling
* team_social.md: Platform-specific notes, limit guidelines, content warnings
* team_leader.md: Added CryptoSymbolsTools integration, detailed workflow steps
- Fix market data aggregation:
* aggregate_multi_assets now calculates total volume (sum) instead of average
* Implement currency filtering (prefer USD when currencies differ)
* Refactor aggregate_multi_assets to call aggregate_single_asset for DRY
- Update test expectations for volume calculations
All toolkits now follow unified structure with external markdown documentation
2025-10-30 16:22:21 +01:00