Skip to content

docs: LangGraph state management integration guide #132

@dgenio

Description

@dgenio

Context

Split from #80. A standalone integration guide for LangGraph state management.

Proposal

Create docs/integration_langgraph.md with:

  • Architecture diagram showing contextweaver integrated with LangGraph's state graph nodes
  • Code example: LangGraph state graph using contextweaver for per-node context compilation
  • Key patterns: routing in tool-selection nodes, firewall in tool-execution nodes, budget per graph branch
  • Comparison: LangGraph's built-in state vs contextweaver's phase-aware compilation

Also create examples/langgraph_demo.py with a runnable example.

Acceptance Criteria

  • docs/integration_langgraph.md with architecture, code walkthrough, comparison
  • examples/langgraph_demo.py demonstrating state graph integration
  • README examples table updated
  • Example runs without errors (mock LLM calls)

File Paths

  • docs/integration_langgraph.md (new)
  • examples/langgraph_demo.py (new)
  • README.md (edit)

Parent Issue

Part of #80. Tracked by #123 (framework integration guides epic).

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity/averageStandard effort, moderate familiarity neededdocumentationImprovements or additions to documentationenhancementNew feature or requestexamplesExample scripts and demo improvementsmilestone/v0.6priority/mediumMedium priority — production readiness

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions