Package com.google.genai.types
Class ReplayInteraction
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReplayInteraction
Represents a single interaction, request and response in a replay.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ReplayInteraction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplayInteraction.Builder
builder()
Instantiates a builder for ReplayInteraction.static ReplayInteraction
Deserializes a JSON string to a ReplayInteraction object.abstract Optional<ReplayRequest>
request()
abstract Optional<ReplayResponse>
response()
abstract ReplayInteraction.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ReplayInteraction
public ReplayInteraction()
-
-
Method Details
-
request
-
response
-
builder
Instantiates a builder for ReplayInteraction. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReplayInteraction object.
-