GoogleMessages
Namespace: Vercel.AI.Google
public static class GoogleMessagesConverts prompts into Gemini contents.
Inheritance: object
Fields
Section titled “Fields”SkipThoughtSignatureValidator
Section titled “SkipThoughtSignatureValidator”public const string SkipThoughtSignatureValidator = "skip_thought_signature_validator"Sentinel Gemini documents for replaying a function call whose thought signature was dropped.
Value: string
Methods
Section titled “Methods”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
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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product