Skip to content

Support tuple schema generation for OpenAI/Gemini compatibility#85

Merged
jph00 merged 1 commit intomainfrom
schema_fix
Apr 15, 2026
Merged

Support tuple schema generation for OpenAI/Gemini compatibility#85
jph00 merged 1 commit intomainfrom
schema_fix

Conversation

@jackhogan
Copy link
Copy Markdown
Contributor

OpenAI and Gemini were throwing errors for tools with fixed-length tuple type hints like tuple[int, int]. Anthropic (and kimi) support prefixItems but OpenAI/Gemini ignore it and require items. So this adds items and minItems/maxItems if appropriate.

@jackhogan jackhogan requested a review from jph00 April 15, 2026 16:17
@jph00 jph00 merged commit a2031ab into main Apr 15, 2026
@jph00 jph00 added the enhancement New feature or request label Apr 16, 2026
@jph00 jph00 changed the title Fix tuple schema generation for OpenAI/Gemini compatibility Support tuple schema generation for OpenAI/Gemini compatibility Apr 16, 2026
@jph00
Copy link
Copy Markdown
Collaborator

jph00 commented Apr 16, 2026

Thanks @jackhogan . Minor FYI - add a "bug" or "enhancement" label to PRs to ensure they appear in the release notes.

@jackhogan
Copy link
Copy Markdown
Contributor Author

Ah thanks, didn't know about that. Will do.

@jackhogan jackhogan deleted the schema_fix branch April 16, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants