Skip to content

GoogleProviderTool

Namespace: Vercel.AI.Google

public sealed class GoogleProviderTool

A Gemini provider-defined tool such as Google Search.

Inheritance: object

View source

GoogleProviderTool(string, JsonElement?, string?)

Section titled “GoogleProviderTool(string, JsonElement?, string?)”
public GoogleProviderTool(string id, JsonElement? args = null, string? name = null)

Creates a provider tool.

Parameters

Name Type Description
id string
args JsonElement?
name string

View source

public JsonElement? Args { get; }

Tool arguments.

Value: JsonElement?

View source

public string Id { get; }

Tool id, such as google.google_search.

Value: string

View source

public string? Name { get; }

Custom name used when the model echoes a built-in tool such as code execution.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product