Skip to content

sanhariharan/AgentPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– MultiAgentic Chart Generator

MultiAgent Banner
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!


🧩 Multi-Agent Workflow Overview

πŸ•Έ MultiAgent Workflow Diagram

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.


πŸš€ Core Features

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

πŸ› οΈ Tech Stack & Tools

Tool Description Icon
LangGraph Graph-based multi-agent workflow engine LangGraph
LangChain Framework for LLM agents and tool use LangChain
Gemini 1.5 Flash LLM backend for fast & intelligent decisions Gemini
Tavily Search Tool Real-time web search API Search
Python REPL Tool Executes chart code in real-time Python

πŸ’‘ Example Query

Get the UK's GDP over the past 3 years and then generate a line chart. Once the chart is ready, end the process.

βš™οΈ Installation & Running

  1. Clone the repository and navigate to the Agentic-2.0/langgraph directory:

    git clone <repository-url>
    cd Agentic-2.0/langgraph
  2. Install the required dependencies:

    pip install -r requirements1.txt
  3. Set up environment variables for API keys by creating a .env file 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
    
  4. Run the MulriAgent.ipynb notebook to start the multi-agent system.


πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.


About

Multiagentic (researcher + chartGenerator) - using Langgraph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published