Replies: 1 comment
|
For On the normal Gemini async for event in runner.run_async(
user_id=user_id,
session_id=session_id,
new_message=message,
):
grounding = event.grounding_metadata
if grounding is not None:
print("Queries:", grounding.web_search_queries)
for chunk in grounding.grounding_chunks or []:
if chunk.web is not None:
print(chunk.web.title, chunk.web.uri)This prints the queries and source references supplied by the API. Grounding supports also link response text to sources. The metadata can be absent when the model doesn't use Search. ADK's |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Everyone, I have implemented one of the google sample ADK agents, which uses the google search tool. Now, I want to see the verbosity, to check what exactly the google_search tool is searching and how is it parsing through the links on the google. Can anyone, kindly help me to enable logging/checking verbosity.
All reactions