LangChain deep market research

Create a source-backed market brief with web and news search.

The agent plans a market investigation, separates recent reporting from durable sources, reconciles evidence, and writes a decision-ready brief.

SerpApi enhancement: typed web and news tools replace the original generic search dependency.

Run from the repository root:

uv run --isolated --no-project --with 'serpapi-search-tools[langchain]' --with python-dotenv --with langchain-openai cookbook/langchain/main.py

Read the complete cookbook entry or the official Deep Agents from scratch source.