Skip to content

Conversation

@PiotrCzapla
Copy link
Contributor

Gemini models assume that items are present for type: 'array'. Adding items: {} fixes the issue.

This prevents 400 Bad Request errors during tool registration. Otherwise, using Gemini with tools like symfiles_package results in an error.

@PiotrCzapla PiotrCzapla requested a review from jph00 January 21, 2026 18:48
@PiotrCzapla PiotrCzapla marked this pull request as draft January 21, 2026 18:49
@PiotrCzapla PiotrCzapla marked this pull request as ready for review January 21, 2026 19:59
@PiotrCzapla
Copy link
Contributor Author

Here is dialog that test the changes with gemini https://share.solve.it.com/d/e69a17d2a98ec1d9f82ea56377d13bf1

@jph00 jph00 added the bug Something isn't working label Jan 27, 2026
@jph00 jph00 changed the title Fix: Add 'items' field to JSON schema for Gemini compatibility Add 'items' field to JSON schema for Gemini compatibility Jan 27, 2026
@jph00
Copy link
Collaborator

jph00 commented Jan 27, 2026

Nice find! :) BTW instead of prefixing 'Fix:', use the bug label - that's how we create our release notes. I've updated it now.

@jph00 jph00 merged commit b9f7b1b into main Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants