[AIC-3451] Register LangChain handlers in the Python example registry - #115
Merged
Merged
Conversation
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
self-requested a review
September 28, 2026 18:38
andrewklatzke
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
create_langchain_messages_handlerandcreate_langchain_agents_handlerinexamples/register.py, matching the TypeScript example registry so providers without a dedicated handler (including Bedrock) resolve through the LangChain wildcard route.langchain-awsas a dev dependency so that route can construct a Bedrock chat model.graph-streamingagainsttravel-agent-flowwas failing withHandler for provider Bedrock not found.Test plan
uv lock --checkmake test(1392 passed, 11 skipped)graph-streamingagainsttravel-agent-flowand confirm it no longer fails withHandler for provider Bedrock not foundmain, so it doesn't exercise the fix: every node intravel-agent-flowon staging currently resolves to OpenAI (orchestratorgpt-5.4, lodging/restaurant/leisuregpt-5, summarizergpt-5.1), so there's no Bedrock node to reach.select_handlerwith providerBedrockagainst the example registry:mainraisesHandler for provider Bedrock not foundfor every mode; this branch resolves to the LangChain wildcard handlers (('*', 'messages')/('*', 'agent')).Made with Cursor