Class InteractionResponseFormat
java.lang.Object
com.google.genai.gaos.models.interactions.InteractionResponseFormat
InteractionResponseFormat
Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.JsonNode>asJson()Returns anOptionalcontaining the value as aJsonNode.booleaninthashCode()static InteractionResponseFormatof(ResponseFormat value) static InteractionResponseFormatof(List<ResponseFormat> value) toString()
-
Method Details
-
of
-
of
-
responseFormat
Returns anOptionalcontaining the value if it is of typeResponseFormat, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theResponseFormatvalue, or empty if not of this type
-
arrayOfResponseFormat
Returns anOptionalcontaining the value if it is of typeList<ResponseFormat>, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theList<ResponseFormat>value, 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
-