Package com.openai.models.responses
Class ResponseReasoningItem.Content
-
- All Implemented Interfaces:
public final class ResponseReasoningItem.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseReasoningItem.Content.Builder
A builder for Content.
-
Method Summary
Modifier and Type Method Description final String
text()
Reasoning text output from the model. final JsonValue
_type()
The type of the object. final JsonField<String>
_text()
Returns the raw JSON value of text. final Map<String, JsonValue>
_additionalProperties()
final ResponseReasoningItem.Content.Builder
toBuilder()
final ResponseReasoningItem.Content
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseReasoningItem.Content.Builder
builder()
Returns a mutable builder for constructing an instance of Content. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the object. Always
reasoning_text
.Expected to always return the following:
JsonValue.from("reasoning_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 ResponseReasoningItem.Content.Builder toBuilder()
-
validate
final ResponseReasoningItem.Content validate()
-
builder
final static ResponseReasoningItem.Content.Builder builder()
Returns a mutable builder for constructing an instance of Content.
The following fields are required:
.text()
-
-
-
-