Class LiveConnectParameters
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
Config
Optional configuration parameters for the request.
[JsonPropertyName("config")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public LiveConnectConfig? Config { get; set; }
Property Value
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a LiveConnectParameters object.
public static LiveConnectParameters? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- LiveConnectParameters
The deserialized LiveConnectParameters object, or null if deserialization fails.