fix: add provider-safe structured output mode - #123
Merged
Conversation
radu-mocanu
requested review from
DragosBobolea,
cosminacho,
cristipufu,
dragosvelcea,
ionmincu,
ionut-mihalache-uipath and
vldcmp-uipath
as code owners
August 6, 2026 12:43
radu-mocanu
temporarily deployed
to
LLMGW_SETTINGS
August 6, 2026 12:44 — with
GitHub Actions
Inactive
andrei-rusu
approved these changes
Aug 6, 2026
ionut-mihalache-uipath
approved these changes
Aug 6, 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
method="auto"structured output for the normalized chat clientfunction_callingdefaultinclude_raw=Truework with standard LangChain message-list inputsWhy
The normalized API unifies transport, but providers still differ in structured-output capabilities: Gemini rejects the OpenAI response formats used by JSON mode and JSON schema, while Claude Haiku can return an incomplete schema through function calling even when parallel calls are disabled. Centralizing the capability choice in this client keeps Health Score and other consumers provider-independent.
Validation
uv run ruff checkuv run ruff format --checkuv run pyright .agentsplaygrounddataresidencyandagentsplaygroundfallback