Add test_connection support to LangChainHook and LlamaIndexHook - #71841
Open
ColtenOuO wants to merge 1 commit into
Open
Add test_connection support to LangChainHook and LlamaIndexHook#71841ColtenOuO wants to merge 1 commit into
ColtenOuO wants to merge 1 commit into
Conversation
Clicking Test on a LangChain or LlamaIndex connection in the UI always reported "doesn't implement or inherit test_connection method" since neither hook implemented it, unlike PydanticAIHook and MCPHook which already validate their connections this way.
ColtenOuO
requested review from
Lee-W,
ashb,
gopidesupavan and
kaxil
as code owners
August 19, 2026 13:56
SameerMesiah97
approved these changes
Aug 19, 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
LangChainHookandLlamaIndexHookare two of the four selectable connection types in thecommon.aiprovider, but neither implementedtest_connection().Clicking "Test" on a connection of either type in the UI always returned:
PydanticAIHookandMCPHook— the other two connection types in this provider already implement it, resolving the model/config without making a real API call.Changes
This PR adds the same pattern to the two missing hooks:
LangChainHook.test_connection()resolves the chat model viaget_chat_model().LlamaIndexHook.test_connection()resolves the LLM viaget_llm().Was generative AI tooling used to co-author this PR?