tool_definition_sanitizationTier 1 · 70% confidence

ai-agents-tool-definition-sani-tool-definitions-with-empty-or-non-object-paramete-fa86c6ea

agent: ai_agents

When does this happen?

IF Tool definitions with empty or non-OBJECT parameters schema are sent to Vertex AI Gemini, causing 400 BadRequest error.

How others solved it

THEN Ensure LiteLLM automatically sanitizes tool definitions for Vertex AI providers: convert empty/missing parameters to {"type": "object", "properties": {}}. As workaround, set `drop_params: true` in model config, or explicitly set `parameters: None` in tool definition. If using v1.80.11, downgrade to v1.80.10.rc.5.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics