Class LiveSendClientContentParameters
Parameters for sending client content to the live API.
public record LiveSendClientContentParameters : IEquatable<LiveSendClientContentParameters>
- Inheritance
-
LiveSendClientContentParameters
- Implements
- Inherited Members
Properties
TurnComplete
If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation.
[JsonPropertyName("turnComplete")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? TurnComplete { get; set; }
Property Value
- bool?
Turns
Client content to send to the session.
[JsonPropertyName("turns")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<Content>? Turns { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a LiveSendClientContentParameters object.
public static LiveSendClientContentParameters? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- LiveSendClientContentParameters
The deserialized LiveSendClientContentParameters object, or null if deserialization fails.