Package com.google.genai.types
Class ReplayInteraction
-
- All Implemented Interfaces:
public abstract class ReplayInteraction extends JsonSerializable
Represents a single interaction, request and response in a replay.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classReplayInteraction.BuilderBuilder for ReplayInteraction.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ReplayInteraction()
-
Method Summary
Modifier and Type Method Description abstract Optional<ReplayRequest>request()abstract Optional<ReplayResponse>response()static ReplayInteraction.Builderbuilder()Instantiates a builder for ReplayInteraction. abstract ReplayInteraction.BuildertoBuilder()Creates a builder with the same values as this instance. static ReplayInteractionfromJson(String jsonString)Deserializes a JSON string to a ReplayInteraction object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
request
abstract Optional<ReplayRequest> request()
-
response
abstract Optional<ReplayResponse> response()
-
builder
static ReplayInteraction.Builder builder()
Instantiates a builder for ReplayInteraction.
-
toBuilder
abstract ReplayInteraction.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ReplayInteraction fromJson(String jsonString)
Deserializes a JSON string to a ReplayInteraction object.
-
-
-
-