GoogleProviderTool
Namespace: Vercel.AI.Google
public sealed class GoogleProviderToolA Gemini provider-defined tool such as Google Search.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public JsonElement? Args { get; }Tool arguments.
Value: JsonElement?
public string Id { get; }Tool id, such as google.google_search.
Value: string
public string? Name { get; }Custom name used when the model echoes a built-in tool such as code execution.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product