Skip to content

Error should be thrown to warn about the combination of response schema and google grounding / search tool #488

@jamesleeht

Description

@jamesleeht

In the Python SDK, an error is thrown:
googleapis/python-genai#665

In the Golang SDK, no error is thrown. The SDK just returns a response that looks like this as text:

<ctrl42>call:google_search.search{queries:
  [
    ]
}<ctrl43><ctrl44>

This should probably be documented somewhere or an error should be thrown in the SDK.

Metadata

Metadata

Labels

api:gemini-apiIssues related to Gemini APIpriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions