feat: support parametersJsonSchema on function declarations #2

Merged
andreban merged 1 commits from feat/parameters-json-schema into main 2026-10-18 08:54:33 +01:00
Owner

FunctionDeclaration.parameters becomes Option, and the new
parameters_json_schema field sends the schema as JSON Schema. Vertex
rejects many JSON Schema keywords in parameters ($schema, $ref/$defs,
const, type arrays) but accepts them in parametersJsonSchema. Both
fields are skipped when None, since Vertex rejects a declaration that
sets both.

FunctionDeclaration.parameters becomes Option<Value>, and the new parameters_json_schema field sends the schema as JSON Schema. Vertex rejects many JSON Schema keywords in parameters ($schema, $ref/$defs, const, type arrays) but accepts them in parametersJsonSchema. Both fields are skipped when None, since Vertex rejects a declaration that sets both.
andreban added 1 commit 2026-10-18 08:54:14 +01:00
feat: support parametersJsonSchema on function declarations
Some checks failed
Rust / build (pull_request) Has been cancelled
43cf7933fc
FunctionDeclaration.parameters becomes Option<Value>, and the new
parameters_json_schema field sends the schema as JSON Schema. Vertex
rejects many JSON Schema keywords in parameters ($schema, $ref/$defs,
const, type arrays) but accepts them in parametersJsonSchema. Both
fields are skipped when None, since Vertex rejects a declaration that
sets both.
andreban merged commit 196d5a9f55 into main 2026-10-18 08:54:33 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: andreban/gemini-rs#2