Package com.openai.models.conversations
Class TextContent
-
- All Implemented Interfaces:
public final class TextContent
A text content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TextContent.Builder
A builder for TextContent.
-
Method Summary
Modifier and Type Method Description final String
text()
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 TextContent.Builder
toBuilder()
final TextContent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TextContent.Builder
builder()
Returns a mutable builder for constructing an instance of TextContent. -
-
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 TextContent.Builder toBuilder()
-
validate
final TextContent validate()
-
builder
final static TextContent.Builder builder()
Returns a mutable builder for constructing an instance of TextContent.
The following fields are required:
.text()
-
-
-
-