Skip to content

GoogleTools

Namespace: Vercel.AI.Google

public static class GoogleTools

Prepares Gemini function and provider-defined tools.

Inheritance: object

View source

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

View source

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