GoogleToolPreparation
Namespace: Vercel.AI.Google
public sealed class GoogleToolPreparationTools and toolConfig prepared for a generateContent request.
Inheritance: object
Constructors
Section titled “Constructors”GoogleToolPreparation(JsonArray?, JsonObject?, IReadOnlyList<GoogleWarning>, IReadOnlyDictionary<string, string>)
Section titled “GoogleToolPreparation(JsonArray?, JsonObject?, IReadOnlyList<GoogleWarning>, IReadOnlyDictionary<string, string>)”public GoogleToolPreparation(JsonArray? tools, JsonObject? toolConfig, IReadOnlyList<GoogleWarning> warnings, IReadOnlyDictionary<string, string> names)Creates a preparation result.
Parameters
| Name | Type | Description |
|---|---|---|
tools |
JsonArray | |
toolConfig |
JsonObject | |
warnings |
IReadOnlyList<GoogleWarning> | |
names |
IReadOnlyDictionary<string, string> |
Properties
Section titled “Properties”public IReadOnlyDictionary<string, string> Names { get; }Maps a built-in wire name such as code_execution onto the caller’s tool name.
Value: IReadOnlyDictionary<string, string>
ToolConfig
Section titled “ToolConfig”public JsonObject? ToolConfig { get; }Function-calling configuration.
Value: JsonObject
public JsonArray? Tools { get; }Gemini tools array.
Value: JsonArray
Warnings
Section titled “Warnings”public IReadOnlyList<GoogleWarning> Warnings { get; }Warnings for unsupported combinations.
Value: IReadOnlyList<GoogleWarning>
Methods
Section titled “Methods”CustomName(string)
Section titled “CustomName(string)”public string CustomName(string wireName)Returns the caller name for a built-in tool, or the wire name.
Parameters
| Name | Type | Description |
|---|---|---|
wireName |
string |
Returns: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product