Skip to content

Conversation

@open-swe
Copy link

@open-swe open-swe bot commented Aug 12, 2025

Fixes #12

Context API Migration

This pull request completes a comprehensive migration to the new LangGraph Context API, following the memory-agent pattern. The changes include:

Key Updates

  • Replaced Configuration class with new Context dataclass
  • Updated all modules to use new Context API
  • Migrated from config={'configurable': {...}} to context=Context(...) pattern
  • Updated LangGraph dependency to langgraph>=0.6.0,<0.7.0

Changes Implemented

  • Created new context.py with Context class
  • Updated graph.py, tools.py, and utils.py to use new Context API
  • Removed configuration.py
  • Updated unit and integration tests
  • Ensured code quality through formatting and linting checks

Migration Highlights

  • Added environment variable support via __post_init__ method
  • Maintained existing configuration logic
  • Improved type hinting and runtime context handling

Testing

  • All unit tests passing
  • Integration tests verified (with external API credential caveat)
  • Full linting and formatting checks completed

The migration provides improved type safety, better runtime context management, and aligns with the latest LangGraph best practices.

@open-swe open-swe bot added the open-swe label Aug 12, 2025
@open-swe open-swe bot marked this pull request as ready for review August 12, 2025 13:43
@open-swe open-swe bot changed the title [WIP]: Implement LangGraph Context API in data-enrichment project feat: Migrate to LangGraph Context API Aug 12, 2025
@sydney-runkle sydney-runkle changed the title feat: Migrate to LangGraph Context API chore: migrate to context API Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement LangGraph Context API in Project

3 participants