Skip to content

[Examples][Platform][Gemini] Combination of Tool Calling and Structured Output or Server Tools Fails #803

@chr-hertel

Description

@chr-hertel

Currently two Gemini examples fail due to a combination of tool calling with structured output or server tools:

php gemini/server-tools.php:

Error "400" - "INVALID_ARGUMENT": "Tool use with function calling is unsupported".

php gemini/structured-output-clock.php:

Error "400" - "INVALID_ARGUMENT": "Function calling with a response mime type: 'application/json' is unsupported".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions