GoogleTools
Namespace: Vercel.AI.Google
public static class GoogleToolsPrepares Gemini function and provider-defined tools.
Inheritance: object
Methods
Section titled “Methods”Prepare(IReadOnlyList<LanguageModelTool>?, IReadOnlyList<GoogleProviderTool>?, ToolChoice?, string, bool)
Section titled “Prepare(IReadOnlyList<LanguageModelTool>?, IReadOnlyList<GoogleProviderTool>?, ToolChoice?, string, bool)”public static GoogleToolPreparation Prepare(IReadOnlyList<LanguageModelTool>? functionTools, IReadOnlyList<GoogleProviderTool>? providerTools, ToolChoice? toolChoice, string modelId, bool isVertexProvider)Prepares tools for <code class=“paramref”>modelId</code>.
Parameters
| Name | Type | Description |
|---|---|---|
functionTools |
IReadOnlyList<LanguageModelTool> | |
providerTools |
IReadOnlyList<GoogleProviderTool> | |
toolChoice |
ToolChoice | |
modelId |
string | |
isVertexProvider |
bool |
Returns: GoogleToolPreparation
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product