Skip to content

GoogleInteractionsInput

Namespace: Vercel.AI.Google

public static class GoogleInteractionsInput

Converts a prompt into an Interactions input array.

Inheritance: object

View source

public static JsonObject Convert(IReadOnlyList<ModelMessage> prompt)

Converts shared messages. System text is joined into systemInstruction.

Parameters

Name Type Description
prompt IReadOnlyList<ModelMessage>

Returns: JsonObject

View source

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