Autonomous tool orchestration powered by Cohere Command R+. The agent reasons about your query, selects the right tools, and synthesizes results across multi-turn conversations.
The agent analyzes each query, selects the optimal tool, executes it, and returns synthesized results — all autonomously.
Real-time web search to fetch current information, news, and answers from across the internet.
Execute Python code in a sandboxed environment. Run scripts, test logic, and compute results on the fly.
Evaluate mathematical expressions with precision. Supports arithmetic, algebra, and scientific functions.
Extract structured content from any URL. Parse HTML, pull text, and retrieve page data programmatically.
Cohere Command R+ reasons about your query and selects the right tool without manual configuration.
Maintains conversation context across turns, enabling follow-up questions and iterative exploration.
A linear pipeline from query to synthesized response, with intelligent branching at the tool selection layer.
Each tool is registered with a schema that the LLM uses to decide when and how to invoke it.
Clone, install, configure your API key, and start the agent.
# Clone the repository git clone https://github.com/BabyChrist666/cohere-multi-tool-agent.git cd cohere-multi-tool-agent # Install dependencies pip install -r requirements.txt # Set your Cohere API key export COHERE_API_KEY="your-api-key"
# Start the multi-tool agent python main.py # Or run with FastAPI server uvicorn app:app --reload --port 8000 # Agent is now ready for queries # Visit http://localhost:8000/docs for API docs
# Example: The agent auto-selects the right tool > "What is the mass of Jupiter in kilograms?" ↳ Tool: calculate ↳ Result: 1.898 × 10^27 kg > "Search for the latest news on AI agents" ↳ Tool: web_search ↳ Result: [synthesized search results] > "Scrape the title from https://example.com" ↳ Tool: scrape_url ↳ Result: "Example Domain"
A focused set of technologies chosen for reliability, speed, and developer experience.
Clone the repo, plug in your Cohere API key, and let the agent handle the rest.