Table of Contents

Class ReplayInteraction

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

Represents a single interaction, request and response in a replay.

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

Properties

Request

[JsonPropertyName("request")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplayRequest? Request { get; set; }

Property Value

ReplayRequest

Response

[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplayResponse? Response { get; set; }

Property Value

ReplayResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ReplayInteraction object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ReplayInteraction

The deserialized ReplayInteraction object, or null if deserialization fails.