Fix/model error antigravity - #309
Merged
Merged
Conversation
…with LLM providers
…with test, format sanitizer)
co-l
force-pushed
the
fix/model-error-antigravity
branch
from
September 2, 2026 18:36
a306365 to
cd496a2
Compare
Owner
Merged, will be released in v2.0.136AI-summary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes tool parameter schema serialization errors (HTTP 400
Invalid value at 'request.tools[0].function_declarations[...].parameters.properties[...].value' (type.googleapis.com/google.cloud.aiplatform.master.Schema), "object") encountered with Google Cloud Vertex AI, Antigravity, and Gemini models:src/server/llm/schema-sanitizer.ts):additionalProperties,$schema,$id,patternProperties, etc.).null/undefinedfields (e.g.default: nullgenerated by MCP servers such as Jira)."properties"to"props"in the schema (and remaps them on execution) to prevent collisions with the ProtobufSchema.propertiesfield in Google APIs.type: "object"has a definedproperties: {}map and everytype: "array"has a typeditemsschema.sanitizeToolSchemaacross standard LLM client conversion (client-pure.ts), transport adapters (transport-client.ts), and MCP server tool registration (tool-adapter.ts,manager.ts).ask_useroptions union andproject_tasksattachments items schemas to conform to strict provider requirements.AI-Enhanced Development
Tell what models helped shape this PR:
Cache Impact
Does this PR affect anything cached — system prompts, tool definitions, skills, or other context?
ask_user,project_tasks) and MCP tools are now normalized and sanitized (strippingadditionalProperties, null defaults, and renaming"properties"parameter to"props"), which updates the cached tool definitions hash.