Tools - chin3/Multi-Agent-Research-POC GitHub Wiki

🧰 Tools System

Tool Parser

Purpose

Extracts and parses tool calls from agent responses.

Functionality

  • Identifies <tool_call>BraveSearch(...)</tool_call> pattern
  • Extracts and validates JSON parameters

Technical Details

  • Uses regex for pattern matching
  • Handles errors gracefully

Tool Registry

Purpose

Centralized registry for tool implementations.

Functionality

  • Maps tool names to functions
  • Two options for Brave Search:
    • Direct API call
    • MCP plugin server

Technical Details

  • Uses httpx for HTTP calls
  • Loads env variables for keys
  • Formats results

← Back to Home

⚠️ **GitHub.com Fallback** ⚠️