Gen AI SDK with tooling to disable google search selectively for batch requests

I want to send batch requests using Gen AI SDK using several tools , but i want to disable Google search via tools option. Is there a way to do this? I cannot find a way to disable Google search alone selectively for batch requests.

1 Like

Hi @dheerajpanyam,

One possible suggestion to selectively disable Google Search in your tools is to remove and not declare it in the tool list parameter when sending batch requests using the GEN AI SDK.

Thanks @marckevin . That is exactly what i am looking for , tools syntax. I tried passing null but doesn’t work.

Yes, you can implement selective disabling of Google Search in a Gen AI SDK setup by adding a condition or toggle in your batch request handling logic.