Skip to content

Conversation

@copybara-service
Copy link

feat: Add GeminiSchemaUtil for converting OpenAPI/MCP JsonSchema to com.google.genai.types.Schema

This change introduces GeminiSchemaUtil to centralize the logic for converting OpenAPI/MCP JsonSchema to com.google.genai.types.Schema. The utility handles type sanitization, format filtering, snake_case conversion for schema keywords, and recursive processing of nested schemas.

@copybara-service copybara-service bot force-pushed the test_794283578 branch 4 times, most recently from 298ad34 to cd6e950 Compare August 13, 2025 17:51
… `com.google.genai.types.Schema`

This change introduces `GeminiSchemaUtil` to centralize the logic for converting OpenAPI/MCP `JsonSchema` to `com.google.genai.types.Schema`. The utility handles type sanitization, format filtering, snake_case conversion for schema keywords, and recursive processing of nested schemas.

PiperOrigin-RevId: 794653084
@copybara-service copybara-service bot merged commit 1945fad into main Aug 13, 2025
@copybara-service copybara-service bot deleted the test_794283578 branch August 13, 2025 18:03
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