Class ResponseReasoningItem
-
- All Implemented Interfaces:
public final class ResponseReasoningItem
A description of the chain of thought used by a reasoning model while generating a response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseReasoningItem.Builder
A builder for ResponseReasoningItem.
public final class
ResponseReasoningItem.Summary
public final class
ResponseReasoningItem.Status
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique identifier of the reasoning content. final List<ResponseReasoningItem.Summary>
summary()
Reasoning text contents. final JsonValue
_type()
The type of the object. final Optional<ResponseReasoningItem.Status>
status()
The status of the item. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<List<ResponseReasoningItem.Summary>>
_summary()
Returns the raw JSON value of summary. final JsonField<ResponseReasoningItem.Status>
_status()
Returns the raw JSON value of status. final Map<String, JsonValue>
_additionalProperties()
final ResponseReasoningItem.Builder
toBuilder()
final ResponseReasoningItem
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseReasoningItem.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseReasoningItem. -
-
Method Detail
-
summary
final List<ResponseReasoningItem.Summary> summary()
Reasoning text contents.
-
_type
final JsonValue _type()
The type of the object. Always
reasoning
.Expected to always return the following:
JsonValue.from("reasoning")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
status
final Optional<ResponseReasoningItem.Status> status()
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_summary
final JsonField<List<ResponseReasoningItem.Summary>> _summary()
Returns the raw JSON value of summary.
Unlike summary, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseReasoningItem.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseReasoningItem.Builder toBuilder()
-
validate
final ResponseReasoningItem validate()
-
builder
final static ResponseReasoningItem.Builder builder()
Returns a mutable builder for constructing an instance of ResponseReasoningItem.
The following fields are required:
.id() .summary()
-
-
-
-