Skip to content

v0.2.1: LangChain 1.0.0a12 Upgrade

Choose a tag to compare

@webup webup released this 08 Oct 10:32
· 8 commits to main since this release

🎉 What's New in v0.2.1

This release upgrades the entire monorepo to LangChain 1.0.0a12 and the v1alpha ecosystem, bringing improved stability and modern API patterns.


🔄 Breaking Changes

LangChain v1alpha Migration

  • Upgraded to langchain 1.0.0a12 which forces langchain-core to v1alpha
  • Migrated from langchain-qwq and langchain-siliconflow to langchain-openai
    • langchain-qwq and langchain-siliconflow are not yet v1alpha compatible
    • All OpenAI-compatible providers now consolidated to use langchain-openai
    • Qwen, QwQ, and SiliconFlow models still supported via langchain-openai adapter

API Changes

  • Standardized InjectedState imports to canonical location: `from langchain.tools.tool_node import InjectedState`
    • Removed fallback import logic from search.py
    • Updated handoff.py to use new import path
  • Fixed AgentStatePydantic deprecation warnings in tests
  • Updated import paths for v1alpha compatibility

🐛 Bug Fixes

CI/CD Improvements

  • Fixed GitHub CI workflow failures in sample-deep-agent tests
  • Added mock API keys to test fixtures and CI workflow:
    • SILICONFLOW_API_KEY
    • OPENROUTER_API_KEY
    • OPENAI_API_KEY
  • All 171 unit tests now pass consistently in CI environment

🧪 Testing

Test Suite Status

  • 171 unit tests passing across all packages
    • 149 tests in libs/langgraph-up-devkits
    • 10 tests in apps/sample-agent
    • 12 tests in apps/sample-deep-agent
  • ✅ All linting checks pass (ruff + mypy)
  • ✅ All formatting checks pass

📦 Dependencies

Updated Packages

  • libs/langgraph-up-devkits/pyproject.toml: Migrated to langchain-openai for multi-provider support
  • apps/sample-deep-agent/pyproject.toml: Aligned with v1alpha ecosystem
  • uv.lock: Regenerated with new dependency tree

Provider Support

The monorepo continues to support multiple model providers through langchain-openai:

  • OpenRouter (Anthropic, OpenAI, Google models)
  • Qwen models via OpenAI-compatible API
  • QwQ models via OpenAI-compatible API
  • SiliconFlow models via OpenAI-compatible API

📝 Commits Included

  • c9c846f: ♻️ refactor: upgrade to langchain 1.0.0a12 and migrate to v1alpha ecosystem
  • 1b04270: 🐛 fix: add SILICONFLOW_API_KEY mock for CI workflow

🔗 Full Changelog

Full Changelog: v0.2.0...v0.2.1


🙏 Acknowledgments

Special thanks to the LangChain team for the v1alpha release and continued improvements to the ecosystem.

🤖 Generated with Claude Code