Package com.openai.models.conversations
Class OutputTextContent
-
- All Implemented Interfaces:
public final class OutputTextContent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutputTextContent.BuilderA builder for OutputTextContent.
public final classOutputTextContent.Annotation
-
Method Summary
Modifier and Type Method Description final List<OutputTextContent.Annotation>annotations()The annotations of the text output. final Stringtext()The text output from the model. final JsonValue_type()The type of the output text. final Optional<List<LobProb>>logprobs()final JsonField<List<OutputTextContent.Annotation>>_annotations()Returns the raw JSON value of annotations. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<List<LobProb>>_logprobs()Returns the raw JSON value of logprobs. final Map<String, JsonValue>_additionalProperties()final OutputTextContent.BuildertoBuilder()final OutputTextContentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OutputTextContent.Builderbuilder()Returns a mutable builder for constructing an instance of OutputTextContent. -
-
Method Detail
-
annotations
final List<OutputTextContent.Annotation> annotations()
The annotations of the text output.
-
_type
final JsonValue _type()
The type of the output text. Always
output_text.Expected to always return the following:
JsonValue.from("output_text")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_annotations
final JsonField<List<OutputTextContent.Annotation>> _annotations()
Returns the raw JSON value of annotations.
Unlike annotations, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_logprobs
final JsonField<List<LobProb>> _logprobs()
Returns the raw JSON value of logprobs.
Unlike logprobs, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OutputTextContent.Builder toBuilder()
-
validate
final OutputTextContent validate()
-
builder
final static OutputTextContent.Builder builder()
Returns a mutable builder for constructing an instance of OutputTextContent.
The following fields are required:
.annotations() .text()
-
-
-
-