Class InteractionSseEventInteraction
java.lang.Object
com.google.genai.gaos.models.interactions.InteractionSseEventInteraction
InteractionSseEventInteraction
Partial interaction resource emitted by interaction lifecycle SSE events. Streaming lifecycle payloads may omit fields that are only available on full non-streaming Interaction responses.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInteractionSseEventInteraction(String agent, String created, String id, String model, String object, ServiceTier serviceTier, InteractionSseEventInteractionStatus status, List<Step> steps, String updated, Usage usage) -
Method Summary
Modifier and TypeMethodDescriptionagent()The agent to interact with.builder()created()Output only.booleaninthashCode()id()Required.model()The model that will complete your prompt.object()Output only.status()Required.steps()Output only.toString()updated()Output only.usage()Statistics on the interaction request's token usage.The agent to interact with.withCreated(String created) Output only.Required.The model that will complete your prompt.withObject(String object) Output only.withServiceTier(ServiceTier serviceTier) Required.Output only.withUpdated(String updated) Output only.Statistics on the interaction request's token usage.
-
Constructor Details
-
InteractionSseEventInteraction
public InteractionSseEventInteraction(@Nullable String agent, @Nullable String created, @Nonnull String id, @Nullable String model, @Nullable String object, @Nullable ServiceTier serviceTier, @Nonnull InteractionSseEventInteractionStatus status, @Nullable List<Step> steps, @Nullable String updated, @Nullable Usage usage) -
InteractionSseEventInteraction
public InteractionSseEventInteraction(@Nonnull String id, @Nonnull InteractionSseEventInteractionStatus status)
-
-
Method Details
-
agent
The agent to interact with. -
created
Output only. The time at which the response was created in ISO 8601 format. -
id
Required. Output only. A unique identifier for the interaction completion. -
model
The model that will complete your prompt. -
object
Output only. The resource type. -
serviceTier
-
status
Required. Output only. The status of the interaction. -
steps
Output only. The steps that make up the interaction, if included in this event. -
updated
Output only. The time at which the response was last updated in ISO 8601 format. -
usage
Statistics on the interaction request's token usage. -
builder
-
withAgent
The agent to interact with. -
withCreated
Output only. The time at which the response was created in ISO 8601 format. -
withId
Required. Output only. A unique identifier for the interaction completion. -
withModel
The model that will complete your prompt. -
withObject
Output only. The resource type. -
withServiceTier
-
withStatus
public InteractionSseEventInteraction withStatus(@Nonnull InteractionSseEventInteractionStatus status) Required. Output only. The status of the interaction. -
withSteps
Output only. The steps that make up the interaction, if included in this event. -
withUpdated
Output only. The time at which the response was last updated in ISO 8601 format. -
withUsage
Statistics on the interaction request's token usage. -
equals
-
hashCode
public int hashCode() -
toString
-