Skip to content

Note (please also test this), Google's grounding search and other built-in Google tools may not be compatible with function calling. #197

Description

@XinyueZ

Function call development is likely underway, but here's a preliminary heads-up.

Here is however an experience to exchange:

Errors:

google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Tool use with function calling is unsupported by the model.', 'status': 'INVALID_ARGUMENT'}}

What's happening?

  • Gemini 2.x
    When using custom tools in the future, such as get_weather, Google's grounding search and similar Google-built-in tools (maybe code execution) might not be able to be used simultaneously. ❌

  • Gemini 3.x
    🟢 Vertexai
    ❌ API Key

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions