Back to Firebase Js Sdk

URLContextTool interface

docs-devsite/ai.urlcontexttool.md

12.12.11019 B
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

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.

<b>Signature:</b>

typescript
export interface URLContextTool 

Properties

PropertyTypeDescription
urlContextURLContextSpecifies the URL Context configuration.

URLContextTool.urlContext

Specifies the URL Context configuration.

<b>Signature:</b>

typescript
urlContext: URLContext;