This project exposes a small FastAPI service that wraps a LangChain based research agent. The service provides search and web scraping tools to gather information on a given topic.
- Clone the repository and install the dependencies:
pip install -r requirements.txt- Provide the required API keys via environment variables:
BROWSERLESS_API_KEY– Browserless API token used for scrapingSERP_API_KEY– Serper API key used for searchOPENAI_API_KEY– OpenAI API key used by LangChain
You can place these in a .env file in the project root.
Start the FastAPI server with uvicorn:
uvicorn app:app --reloadThe service exposes a single POST / endpoint that accepts a JSON body of the form {"query": "your research goal"} and returns the agent's response.
Basic unit tests are provided using pytest:
pytestThis project is licensed under the MIT License. See LICENSE for details.