Skip to content

Conversation

@rabi
Copy link
Contributor

@rabi rabi commented Jan 17, 2026

Summary

Google's Schema spec for 'parameters' does not support $ref/$defs in tool definitions. Gemini 3 enforced stricter validation recently, causing silent failures.

Switch to 'parametersJsonSchema' which supports full JSON Schema including $ref and $defs. This removes the need for process_map schema filtering.

Removes technical debt (custom schema sanitizers), and fixes a functional regression with newer Gemini models.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested with gemini models that were failing silently since yesterday.

Google's Schema spec for 'parameters' does not support $ref/$defs in tool
definitions. Gemini 3 enforced stricter validation recently, causing silent
failures.

Switch to 'parametersJsonSchema' which supports full JSON Schema including
$ref and $defs. This removes the need for process_map schema filtering.

Removes technical debt (custom schema sanitizers), and fixes a functional
regression with newer Gemini models.

Signed-off-by: rabi <ramishra@redhat.com>
@rabi
Copy link
Contributor Author

rabi commented Jan 21, 2026

@DOsinga @jamadeo Hi, PTAL code mode does not work with gemini3 models atm (silent failures) and this would fix it .

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.

1 participant