Table of Contents

Class InteractionTextResponseFormat

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Text output format, e.g. JSON with a schema (type: text).

public sealed class InteractionTextResponseFormat : InteractionResponseFormat
Inheritance
InteractionTextResponseFormat
Inherited Members
Extension Methods

Constructors

InteractionTextResponseFormat()

Initializes a new instance of the InteractionTextResponseFormat class.

public InteractionTextResponseFormat()

Properties

MimeType

The MIME type of the text output (application/json, text/plain).

[JsonPropertyName("mime_type")]
public string? MimeType { get; set; }

Property Value

string

Schema

The JSON Schema the output should conform to (for application/json).

[JsonPropertyName("schema")]
public JsonNode? Schema { get; set; }

Property Value

JsonNode