Table of Contents

Class LiveConnectParameters

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Parameters for connecting to the live API.

public record LiveConnectParameters : IEquatable<LiveConnectParameters>
Inheritance
LiveConnectParameters
Implements
Inherited Members

Properties

Callbacks

callbacks

[JsonPropertyName("callbacks")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? Callbacks { get; set; }

Property Value

object

Config

Optional configuration parameters for the request.

[JsonPropertyName("config")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public LiveConnectConfig? Config { get; set; }

Property Value

LiveConnectConfig

Model

ID of the model to use. For a list of models, see Google models (https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models).

[JsonPropertyName("model")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Model { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a LiveConnectParameters object.

public static LiveConnectParameters? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

LiveConnectParameters

The deserialized LiveConnectParameters object, or null if deserialization fails.