docs(extension): clarify LLMParsedResponseSchema validation path - #2714
Open
HaoChiBao wants to merge 1 commit into
Open
docs(extension): clarify LLMParsedResponseSchema validation path#2714HaoChiBao wants to merge 1 commit into
HaoChiBao wants to merge 1 commit into
Conversation
|
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Architecture diagram
sequenceDiagram
participant Client as LLM Client
participant SDK as AISdkClient
participant Model as LLM Model
participant Schema as response_model.schema
participant Caller as Calling code
Note over Client,Caller: Structured LLM response flow
Client->>SDK: createChatCompletion(prompt, response_model)
SDK->>SDK: Build request with response_model schema
SDK->>Model: Send completion request
Model-->>SDK: objectResponse.output (raw)
SDK->>Schema: Validate objectResponse.output
alt Validation succeeds
Schema-->>SDK: Parsed data
SDK-->>Client: Return data + usage
else Validation fails
Schema-->>SDK: ZodError thrown
SDK-->>Client: Error propagates
end
Client-->>Caller: Return structured result or error
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Replace the stale response_model TODO with a note that AISdkClient validates structured output through AI SDK Output.object.
HaoChiBao
force-pushed
the
fix/llm-parsed-response-validation
branch
from
August 13, 2026 19:06
9e411cd to
5bf0829
Compare
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
response_modelTODO onLLMParsedResponseSchemawith a note thatAISdkClientalready validates structured output through AI SDKOutput.object..parse()that can breaktransform/pipeschemas (per review feedback).Test plan
AISdkClient.createChatCompletionstill returnsobjectResponse.outputfor structured responses