Class InteractionEnvironment
java.lang.Object
com.google.genai.gaos.models.interactions.InteractionEnvironment
InteractionEnvironment
The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.JsonNode>asJson()Returns anOptionalcontaining the value as aJsonNode.booleaninthashCode()static InteractionEnvironmentof(Environment value) static InteractionEnvironmentstring()toString()
-
Method Details
-
of
-
of
-
environment
Returns anOptionalcontaining the value if it is of typeEnvironment, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theEnvironmentvalue, or empty if not of this type
-
string
Returns anOptionalcontaining the value if it is of typeString, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theStringvalue, or empty if not of this type
-
asJson
Returns anOptionalcontaining the value as aJsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.- Returns:
- an
Optionalcontaining theJsonNodevalue, or empty if value matched a known type
-
equals
-
hashCode
public int hashCode() -
toString
-