24
Views
1
Comments
Give Web Access to a GEMINI model called on Agentic App

Hi everyone,

I’m integrating a Gemini model into an ODC Agentic app , and I’m trying to enable internet access (Google Search) to the model.

Inside the Agent configuration, there is the “Extra Body” parameter where we can pass a JSON object to extend the request.

However, in my case the tool access isn’t working at all. Even when I structure the JSON exactly as expected, the Gemini model doesn’t seem to recognize or use the tool.

Has anyone successfully configured:

  • Tool calling for Gemini inside an ODC Agent?

  • Correct JSON structure for the "Extra Body" field?

  • A way to let the model access the internet?

Any working example or guidance would be super helpful.

Thanks in advance!

2024-02-16 11-58-28
Sheikh Mohd Fahad

Hey @Daniel Borges 

I think currently, ODC Agentic apps do not support Gemini tool calling or Google Search, even if the correct JSON is passed via the “Extra Body” parameter. The Agent framework does not forward Gemini tool definitions, so features like internet access, Google Search, grounding, or function calling are ignored.

This is a platform limitation, not a JSON or configuration issue.

Alternative Solution (Recommended)

To enable “internet-aware” responses with Gemini in ODC:

  1. Perform the web search outside the Agent (e.g., Google Custom Search API or any external search service).

  2. Pass the search results as context into the Agent prompt.

  3. Let Gemini reason over that injected context.

This pattern is currently the only reliable way to simulate internet access for Gemini inside ODC Agents until native tool support is introduced.

For More, Read This CLICK HERE.
I hope it helps you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.