This example demonstrates how to create an Orchestrator Agent that intelligently decides between using a search tool or a calculator tool based on user input.
- Intelligent tool selection between search and calculator tools
- Dynamic input/output schema handling
- Real-time date context provider
- Rich console output formatting
- Final answer generation based on tool outputs
-
Clone the Atomic Agents repository:
git clone https://github.com/BrainBlend-AI/atomic-agents
-
Navigate to the orchestration-agent directory:
cd atomic-agents/atomic-examples/orchestration-agent
-
Install dependencies using Poetry:
poetry install
-
Set up environment variables: Create a
.env
file in theorchestration-agent
directory with:OPENAI_API_KEY=your_openai_api_key
-
Install SearxNG (See: https://github.com/searxng/searxng)
-
Run the example:
poetry run python orchestration_agent/orchestrator.py
- OrchestratorInputSchema: Handles user input messages
- OrchestratorOutputSchema: Specifies tool selection and parameters
- FinalAnswerSchema: Formats the final response
These tools were installed using the Atomic Assembler CLI (See the main README here for more info) The agent orchestrates between two tools:
- SearxNG Search Tool: For queries requiring factual information
- Calculator Tool: For mathematical calculations
- CurrentDateProvider: Provides the current date in YYYY-MM-DD format