MultiAgent is an autonomous multi-agent AI system that collaborates to perform real-time research and generate charts β all via self-coordinated agents built on LangGraph & LangChain.
Turn your natural language queries into fully automated data analysis and visualization!
Two specialized agents collaborate:
- Researcher Agent: Performs web-based research using the Tavily Search Tool to gather concise, structured data.
- Chart Generator Agent: Takes the research data and generates charts by executing Python code (e.g., matplotlib).
Agents take turns, reason independently, and collaborate to complete tasks end-to-end.
| Feature | Description |
|---|---|
| π§ LangGraph | Enables stateful multi-agent coordination |
| π€ LangChain React Agents | Each agent reasons & selects tools to use intelligently |
| π Tavily Search Tool | Web research tool to fetch real-time data |
| π» Python REPL Tool | Executes chart-generating Python code safely |
| π― Custom System Prompts | Precisely defines agent behavior and handover logic |
| π Autonomous Transitions | Agents switch roles until FINAL ANSWER is found |
| Tool | Description | Icon |
|---|---|---|
| LangGraph | Graph-based multi-agent workflow engine | |
| LangChain | Framework for LLM agents and tool use | |
| Gemini 1.5 Flash | LLM backend for fast & intelligent decisions | |
| Tavily Search Tool | Real-time web search API | |
| Python REPL Tool | Executes chart code in real-time |
Get the UK's GDP over the past 3 years and then generate a line chart. Once the chart is ready, end the process.-
Clone the repository and navigate to the
Agentic-2.0/langgraphdirectory:git clone <repository-url> cd Agentic-2.0/langgraph
-
Install the required dependencies:
pip install -r requirements1.txt
-
Set up environment variables for API keys by creating a
.envfile in the root directory with:GROQ_API_KEY=your_groq_api_key_here GOOGLE_API_KEY=your_google_api_key_here TAVILY_API_KEY=your_tavily_api_key_here -
Run the
MulriAgent.ipynbnotebook to start the multi-agent system.
This project is licensed under the MIT License. See the LICENSE file for details.
