URLContextTool interface

A tool that allows you to provide additional context to the models in the form of public web URLs. By including URLs in your request, the Gemini model will access the content from those pages to inform and enhance its response.

Signature:

export interface URLContextTool 

Properties

Property Type Description
urlContext URLContext Specifies the URL Context configuration.

URLContextTool.urlContext

Specifies the URL Context configuration.

Signature:

urlContext: URLContext;