Skip to content

Fix structured generation for arrays of Generable types - #240

Merged
mattt merged 1 commit into
mainfrom
mattt/fix-issue-155
Sep 14, 2026
Merged

mattt merged 1 commit into
mainfrom
mattt/fix-issue-155

Conversation

@mattt

@mattt mattt commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Preserves element definitions and nested dependencies in array schemas so arrays of @Generable types produce valid structured-generation schemas. Converts JSON schema reference paths to type names for Foundation Models, preventing conversion from falling back to an empty schema.

Fixes #155

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.

Structured generation fails when a @Generable field is an array of another @Generable

1 participant