Skip to content

The essay writer, employing langgraph, acts as an intelligent agent for generating content.

License

Notifications You must be signed in to change notification settings

realsanjeev/Essay-writer-using-Agent

Repository files navigation

Essay Writer Using Agent

To get started with the Essay Writer Using Agent, follow these steps:

  1. Clone the repository

    git clone https://github.com/realsanjeev/Essay-writer-using-Agent.git
    cd Essay-writer-using-Agent
  2. Set up virtual environment and install dependencies

    python3 -m venv venv
    source venv/bin/activate   # On Windows use `venv\Scripts\activate`
    pip install -r requirements.txt
  3. Create and configure the .env file Create a .env file in the root directory and assign the necessary API keys:

    OPENAI_API_KEY=sk-....
    TAVILY_API_KEY=tvly-.....
  4. Run the application

    python app.py

Multi-agent designs

  1. Focused Tools: Grouping tools by responsibility enhances performance as agents perform better with focused tasks than when choosing from many tools.
  2. Separate Prompts: Using distinct prompts with specific instructions and examples improves results. Each agent can even use a separate fine-tuned LLM.
  3. Modular Development: Evaluating and improving each agent individually is easier and doesn't affect the larger application.
  4. Divide and Conquer: Multi-agent designs break complex problems into manageable tasks, allowing specialized agents and LLM programs to target each unit effectively.

Agent Connection

The router primarily manages state transitions. After each LLM call, it examines the output. If a tool is invoked, it calls that tool. If the LLM responds with "FINAL ANSWER," it returns the response to the user. If neither condition is met, it passes the task to another LLM. Multi-agent Diagram

References:

About

The essay writer, employing langgraph, acts as an intelligent agent for generating content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published