Skip to content

[AIC-3451] Register LangChain handlers in the Python example registry - #115

Merged
jeffdupont merged 1 commit into
mainfrom
jdupont/AIC-3451/register-langchain-handlers
Sep 28, 2026
Merged

jeffdupont merged 1 commit into
mainfrom
jdupont/AIC-3451/register-langchain-handlers

Conversation

@jeffdupont

@jeffdupont jeffdupont commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Register create_langchain_messages_handler and create_langchain_agents_handler in examples/register.py, matching the TypeScript example registry so providers without a dedicated handler (including Bedrock) resolve through the LangChain wildcard route.
  • Add langchain-aws as a dev dependency so that route can construct a Bedrock chat model. graph-streaming against travel-agent-flow was failing with Handler for provider Bedrock not found.

Test plan

  • uv lock --check
  • make test (1392 passed, 11 skipped)
  • Run graph-streaming against travel-agent-flow and confirm it no longer fails with Handler for provider Bedrock not found
    • Live run (staging) exits 0 on this branch, but it also exits 0 on main, so it doesn't exercise the fix: every node in travel-agent-flow on staging currently resolves to OpenAI (orchestrator gpt-5.4, lodging/restaurant/leisure gpt-5, summarizer gpt-5.1), so there's no Bedrock node to reach.
    • Bedrock routing verified offline instead via select_handler with provider Bedrock against the example registry: main raises Handler for provider Bedrock not found for every mode; this branch resolves to the LangChain wildcard handlers (('*', 'messages') / ('*', 'agent')).

Made with Cursor

The example registry only wired OpenAI and Claude, so a Bedrock agent config had no handler. Match the TypeScript registry and add langchain-aws so that wildcard route can construct a Bedrock model.

Co-authored-by: Cursor <cursoragent@cursor.com>
@andrewklatzke
andrewklatzke self-requested a review September 28, 2026 18:38
@jeffdupont
jeffdupont merged commit 6fb7209 into main Sep 28, 2026
8 checks passed
@jeffdupont
jeffdupont deleted the jdupont/AIC-3451/register-langchain-handlers branch September 28, 2026 20:12
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.

2 participants