Skip to content

GoogleMessages

Namespace: Vercel.AI.Google

public static class GoogleMessages

Converts prompts into Gemini contents.

Inheritance: object

View source

public const string SkipThoughtSignatureValidator = "skip_thought_signature_validator"

Sentinel Gemini documents for replaying a function call whose thought signature was dropped.

Value: string

View source

Convert(IReadOnlyList<GoogleTurn>, GoogleMessageOptions?)

Section titled “Convert(IReadOnlyList<GoogleTurn>, GoogleMessageOptions?)”
public static GooglePrompt Convert(IReadOnlyList<GoogleTurn> turns, GoogleMessageOptions? options = null)

Converts rich turns.

Parameters

Name Type Description
turns IReadOnlyList<GoogleTurn>
options GoogleMessageOptions

Returns: GooglePrompt

View source

Convert(IReadOnlyList<ModelMessage>, GoogleMessageOptions?)

Section titled “Convert(IReadOnlyList<ModelMessage>, GoogleMessageOptions?)”
public static GooglePrompt Convert(IReadOnlyList<ModelMessage> prompt, GoogleMessageOptions? options = null)

Converts shared prompt messages.

Parameters

Name Type Description
prompt IReadOnlyList<ModelMessage>
options GoogleMessageOptions

Returns: GooglePrompt

View source

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