Skip to content

feat: add LangGraph and LangChain cookbook notebooks#17

Open
DK09876 wants to merge 6 commits intomainfrom
cookbook/langgraph-react-agent
Open

feat: add LangGraph and LangChain cookbook notebooks#17
DK09876 wants to merge 6 commits intomainfrom
cookbook/langgraph-react-agent

Conversation

@DK09876
Copy link
Contributor

@DK09876 DK09876 commented Mar 18, 2026

Summary

  • Add 06-langgraph-react-agent.ipynb — ReAct agent with tools pattern (agent-driven memory) + nodes pattern (automatic memory injection/storage)
  • Add 07-langchain-memory.ipynb — Plain LangChain chatbot using bind_tools() with a manual tool execution loop
  • Both notebooks support Hindsight Cloud and self-hosted setups with env var configuration

Test plan

  • Run 06-langgraph-react-agent.ipynb end-to-end with a local Hindsight instance
  • Run 07-langchain-memory.ipynb end-to-end with a local Hindsight instance
  • Run sync-cookbook and verify both appear in the docs cookbook index

🤖 Generated with Claude Code

@DK09876 DK09876 force-pushed the cookbook/langgraph-react-agent branch from ea78761 to def3ce3 Compare March 18, 2026 17:36
- 06-langgraph-react-agent: ReAct agent with tools pattern + automatic memory nodes pattern
- 07-langchain-memory: Single-turn chatbot with bind_tools() and manual tool execution loop
- Both support Hindsight Cloud and self-hosted setups

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DK09876 DK09876 force-pushed the cookbook/langgraph-react-agent branch from def3ce3 to 9db3b58 Compare March 18, 2026 17:42
DK09876 and others added 5 commits March 18, 2026 12:08
- Add cross-reference from notebook 06 to 07 (and vice versa)
- Add asyncio.sleep explanation comments
- Fix "single-turn" wording in notebook 07
- Remove unused AIMessage import
- Add OPENAI_API_KEY note to setup sections
- Standardize Docker model to gpt-4o-mini across all notebooks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Changed default from cloud URL to http://localhost:8888 so users
following the Docker quick start don't accidentally hit cloud.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant