Skip to content

GooglePrompt

Namespace: Vercel.AI.Google

public sealed class GooglePrompt

Gemini contents plus an optional system instruction.

Inheritance: object

View source

public GooglePrompt(JsonArray contents, JsonObject? systemInstruction)

Creates a prompt.

Parameters

Name Type Description
contents JsonArray
systemInstruction JsonObject

View source

public JsonArray Contents { get; }

Conversation contents.

Value: JsonArray

View source

public JsonObject? SystemInstruction { get; }

System instruction, omitted for Gemma.

Value: JsonObject

View source

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