Skip to content

fix: migrate evaluator to ai sdk v6 output schema#26

Merged
yltw27 merged 1 commit into
mainfrom
fix/ai-v6-generate-text-output
May 7, 2026
Merged

fix: migrate evaluator to ai sdk v6 output schema#26
yltw27 merged 1 commit into
mainfrom
fix/ai-v6-generate-text-output

Conversation

@yltw27
Copy link
Copy Markdown
Collaborator

@yltw27 yltw27 commented May 7, 2026

Summary

Upgrade the evaluator path for AI SDK v6 by replacing the deprecated structured object generation API with the supported generateText output schema flow.

Changes

  • Switch evaluator calls from generateObject to generateText with Output.object({ schema }).
  • Read structured evaluation results from result.output.
  • Update evaluator tests, telemetry tests, and evaluator docs for the v6 structured output API.
  • Include the ai v6 package and lockfile updates.

@yltw27 yltw27 marked this pull request as ready for review May 7, 2026 14:55
@yltw27 yltw27 requested a review from a team as a code owner May 7, 2026 14:55
@yltw27 yltw27 requested review from djslimbo, horlaarsco and matt-koevort and removed request for a team May 7, 2026 14:55
Use generateText with Output.object for structured evaluator responses after upgrading the ai package to v6.

Co-authored-by: Codex <codex@openai.com>
@yltw27 yltw27 force-pushed the fix/ai-v6-generate-text-output branch from 84183e8 to 05350dc Compare May 7, 2026 14:57
@yltw27 yltw27 merged commit 47df5d6 into main May 7, 2026
2 checks passed
@yltw27 yltw27 deleted the fix/ai-v6-generate-text-output branch May 7, 2026 15:35
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.

4 participants