Package com.openai.models.beta.responses
Class BetaResponseItem.AgentMessage.Content.Text
-
- All Implemented Interfaces:
public final class BetaResponseItem.AgentMessage.Content.TextA text content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseItem.AgentMessage.Content.Text.BuilderA builder for Text.
-
Method Summary
Modifier and Type Method Description final Stringtext()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("text")final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final BetaResponseItem.AgentMessage.Content.Text.BuildertoBuilder()final BetaResponseItem.AgentMessage.Content.Textvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseItem.AgentMessage.Content.Text.Builderbuilder()Returns a mutable builder for constructing an instance of Text. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("text")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseItem.AgentMessage.Content.Text.Builder toBuilder()
-
validate
final BetaResponseItem.AgentMessage.Content.Text validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseItem.AgentMessage.Content.Text.Builder builder()
Returns a mutable builder for constructing an instance of Text.
The following fields are required:
.text()
-
-
-
-