This is the repo for the event Prompt to Product from O'Reilly Media. This repo draws inspiration from the paper AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation by Wu et al., and from the examples from LangGraph.
This repo to construct a Market Research Team and by including the following tools:
- Taviliy for web search, get your API key here.
- Exa, after account login, get your API key here. To find the exact content you’re looking for on the web using embeddings-based search.
- SerpApi here, after account login, get your API key to do look for existing patents.
- Tools to access and write to a .txt file.
The interaction will look like this:
You will also learn how to:
- Define utilities to help create the graph.
- Create a team supervisor and a team of agents.
- The Project Manager Agent (supervisor) assigns tasks to the appropriate agents.
- The Patent Research Agent and two Internet Research Agent to gather external data.
- The Document Writer Agent compiles the research into a document.
- The Internal Product Research Agent collects internal product information.
- The Review and Editing Agent reviews and refines the document for final submission.
In addition, you can use this setup as a boilerplate to develop a Recruiting Agent, by just following the documentation here.
You can either run the agents via the notebook or you can use LangGraph studio, where you can also debug your agents. You need to have Docker installed on your computer to be able to run LangGraph studio. If you run the application via LangGraph Studio, two folders will be automatically created, one called app
and one called working_directory
. Here the produced report will be stored. To access the file via Docker, you can use Docker Desktop and navigate to your Docker Container for your agent, then to app
and then to the working_directory
folder as shown here:
If you are working with Google Colab, you can access the folder by clicking on the folder icon and then on the working_directory
folder and download the report to your computer.