Skip to content

GoogleThinking

Namespace: Vercel.AI.Google

public static class GoogleThinking

Maps the shared reasoning option onto Gemini thinking configuration.

Inheritance: object

View source

Resolve(string?, string, IList<GoogleWarning>)

Section titled “Resolve(string?, string, IList<GoogleWarning>)”
public static JsonObject? Resolve(string? reasoning, string modelId, IList<GoogleWarning> warnings)

Returns a thinkingConfig object, or null when reasoning is unset or provider-default. Provider options are applied later and override these fields.

Parameters

Name Type Description
reasoning string
modelId string
warnings IList<GoogleWarning>

Returns: JsonObject

View source

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