Added Prompt for tools #68

Merged
Simo93-rgb merged 5 commits from 64-prompt-for-tools into main 2025-10-31 00:13:02 +01:00

5 Commits

Author SHA1 Message Date
df65d36f4e Load toolkit instructions from centralized instruction files 2025-10-31 00:08:12 +01:00
Simone Garau
b755387050 Refactor API instructions for clarity and conciseness across Market, News, Plan Memory, Social Media, and Symbols tools. Streamlined tool descriptions, selection strategies, and output requirements. Enhanced error handling and added best practices for usage. Updated formatting for consistency and improved readability. 2025-10-30 17:47:28 +01:00
Simone Garau
eee5642b87 feat: Add query examples for cryptocurrency report generation 2025-10-30 17:21:49 +01:00
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
Simone Garau
0a69dcbace feat: add external instructions file for Market APIs Toolkit
- Created market_instructions.txt with detailed tool usage guidelines
- Added _load_instructions() method to load instructions from external file
- Updated MarketAPIsTool to use external instructions parameter
- Improves maintainability by separating instructions from code
2025-10-30 13:21:59 +01:00