Skip to content

[Bug] API 400 Error during tool schema conversion: missing field in nested parameter schema (items.items) #232

Description

@maxlkatze

When making queries that send tool/function definitions through the adapter proxy to the Gemini API (ag@gemini-3.8-flash-tiered), the API returns a 400 Bad Request error. The schema conversion layer fails to fully populate schema attributes for deeply nested array properties inside GenerateContentRequest.tools.

Environment

Tool: Claude Code CLI v2.1.259
Model / Provider: ag@gemini-3.8-flash-tiered (via Antigravity)

Steps to Reproduce

Launch Claude Code with active claudish overrides directing calls to ag@gemini-3.8-flash-tiered.
Send a prompt .
Observe the API schema validation error on submission.

Log Output

API Error: 400 * GenerateContentRequest.tools[0].function_declarations[1].parameters.properties[query].properties[where].items.items: missing field.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions