Skip to content

Fix LangChain runtime issues and align JS integration with 1.x#135

Merged
saschabuehrle merged 1 commit intomainfrom
fix/langchain-1x-e2e-hardening
Feb 18, 2026
Merged

Fix LangChain runtime issues and align JS integration with 1.x#135
saschabuehrle merged 1 commit intomainfrom
fix/langchain-1x-e2e-hardening

Conversation

@saschabuehrle
Copy link
Copy Markdown
Collaborator

Summary

  • fix Python LangChain streaming by passing tags/metadata via runnable config in nested stream/astream calls
  • make Python bind_tools() compatible with bound Runnable wrappers (e.g. RunnableBinding)
  • keep low-risk tool-call policy explicit in Python tests (high threshold does not force verifier for low-risk tool calls)
  • align @cascadeflow/langchain package deps with LangChain JS 1.x and add @langchain/langgraph for examples
  • fix JS example/runtime issues:
    • remove invalid override modifiers under LangChain 1.x types
    • update LangGraph example to use Annotation.Root state definition
    • guard drafterQuality/latency formatting in langsmith-all-models example

Validation

  • python -m pytest cascadeflow/integrations/langchain/tests -q
  • pnpm --filter @cascadeflow/langchain build
  • pnpm --filter @cascadeflow/langchain typecheck
  • pnpm --filter @cascadeflow/langchain test
  • live smoke with real API keys:
    • Python: examples/langchain_basic_usage.py, examples/langchain_streaming.py, examples/langchain_langgraph_multi_agent.py, examples/langchain_langsmith.py
    • TS: examples/basic-usage.ts, examples/streaming-cascade.ts, examples/lcel-pipeline.ts, examples/tool-risk-gating.ts, examples/model-discovery.ts, examples/langgraph-multi-agent.ts
    • cross-provider smoke (ChatAnthropic -> ChatOpenAI)

@saschabuehrle saschabuehrle merged commit 1da326d into main Feb 18, 2026
19 checks passed
@saschabuehrle saschabuehrle deleted the fix/langchain-1x-e2e-hardening branch February 18, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant