Description
I am trying to use the native google_search
tool with:
from google.ai.generativelanguage_v1beta.types import Tool as GenAITool
resp = llm.invoke(
"When is the next total solar eclipse in US?",
tools=[GenAITool(google_search={})],
)
print(resp.content)
It correctly works but the response is missing all information about the grounding from which urls where used to citations options. The google-genai
sdk returns grounding_metadata.grounding_supports
and grounding_metadata.grounding_chunks
, which detail what part is backed by a search, e.g.
{'start_index': 0, 'end_index': 81, 'segments': ['[0](https://en.wikipedia.org/wiki/UEFA_Euro_2024)',
Metadata
Metadata
Assignees
Labels
No labels