multi_agents_ag2/README.md
AG2 is a framework for building multi-agent applications with LLMs. This example uses AG2 to orchestrate the GPT Researcher multi-agent workflow.
This example mirrors the LangGraph flow with the same set of agents and stages, but uses AG2 as the orchestration layer.
The research team is made up of 8 agents:
Stages:
pip install -r requirements.txt
pip install -r multi_agents_ag2/requirements.txt
export OPENAI_API_KEY={Your OpenAI API Key here}
export TAVILY_API_KEY={Your Tavily API Key here}
python -m multi_agents_ag2.main
To change the research query and customize the report, edit multi_agents_ag2/task.json.
query - The research query or task.model - The OpenAI LLM to use for the agents.max_sections - The maximum number of sections in the report. Each section is a subtopic of the research query.max_revisions - Maximum reviewer/reviser loops per section.include_human_feedback - If true, the user can provide feedback to the agents. If false, the agents will work autonomously.publish_formats - The formats to publish the report in. The reports will be written in the outputs directory.source - The location from which to conduct the research. Options: web or local. For local, please add DOC_PATH env var.follow_guidelines - If true, the research report will follow the guidelines below. It will take longer to complete. If false, the report will be generated faster but may not follow the guidelines.guidelines - A list of guidelines that the report must follow.verbose - If true, the application will print detailed logs to the console.