Table of Contents

Class InteractionGenerationConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Generation parameters for model interactions (generation_config). Not allowed together with an agent.

public sealed class InteractionGenerationConfig
Inheritance
InteractionGenerationConfig
Inherited Members
Extension Methods

Properties

ImageConfig

Deprecated in the API in favour of InteractionImageResponseFormat. Image generation configuration.

[JsonPropertyName("image_config")]
public InteractionImageConfig? ImageConfig { get; set; }

Property Value

InteractionImageConfig

MaxOutputTokens

The maximum number of tokens to include in the response.

[JsonPropertyName("max_output_tokens")]
public int? MaxOutputTokens { get; set; }

Property Value

int?

Seed

Seed used in decoding for reproducibility.

[JsonPropertyName("seed")]
public int? Seed { get; set; }

Property Value

int?

SpeechConfig

Speech and multi-speaker configuration. The API accepts either an object {"speakers":[{"speaker":..,"voice":..,"language":..}]} or an array of {"speaker":..,"voice":..,"language":..} objects.

[JsonPropertyName("speech_config")]
public JsonNode? SpeechConfig { get; set; }

Property Value

JsonNode

StopSequences

A list of character sequences that will stop output.

[JsonPropertyName("stop_sequences")]
public List<string>? StopSequences { get; set; }

Property Value

List<string>

Temperature

Deprecated in the API. Controls the randomness of the output.

[JsonPropertyName("temperature")]
public double? Temperature { get; set; }

Property Value

double?

ThinkingLevel

The thinking level (see InteractionThinkingLevels).

[JsonPropertyName("thinking_level")]
public string? ThinkingLevel { get; set; }

Property Value

string

ThinkingSummaries

Whether thought summaries are returned (see InteractionThinkingSummaries).

[JsonPropertyName("thinking_summaries")]
public string? ThinkingSummaries { get; set; }

Property Value

string

ToolChoice

The tool choice configuration.

[JsonPropertyName("tool_choice")]
public InteractionToolChoice? ToolChoice { get; set; }

Property Value

InteractionToolChoice

TopP

Deprecated in the API. The maximum cumulative probability of tokens to consider when sampling.

[JsonPropertyName("top_p")]
public double? TopP { get; set; }

Property Value

double?

TranscriptionConfig

Configuration for speech recognition (transcription).

[JsonPropertyName("transcription_config")]
public InteractionTranscriptionConfig? TranscriptionConfig { get; set; }

Property Value

InteractionTranscriptionConfig

VideoConfig

Configuration options for video generation.

[JsonPropertyName("video_config")]
public InteractionVideoConfig? VideoConfig { get; set; }

Property Value

InteractionVideoConfig