Class ResponseReasoningItem.Builder
-
- All Implemented Interfaces:
public final class ResponseReasoningItem.Builder
A builder for ResponseReasoningItem.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseReasoningItem.Builder id(String id)
The unique identifier of the reasoning content.
-
id
final ResponseReasoningItem.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
summary
final ResponseReasoningItem.Builder summary(List<ResponseReasoningItem.Summary> summary)
Reasoning text contents.
-
summary
final ResponseReasoningItem.Builder summary(JsonField<List<ResponseReasoningItem.Summary>> summary)
Sets Builder.summary to an arbitrary JSON value.
You should usually call Builder.summary with a well-typed
List<Summary>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addSummary
final ResponseReasoningItem.Builder addSummary(ResponseReasoningItem.Summary summary)
Adds a single Summary to Builder.summary.
-
type
final ResponseReasoningItem.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("reasoning")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
encryptedContent
final ResponseReasoningItem.Builder encryptedContent(String encryptedContent)
The encrypted content of the reasoning item - populated when a response is generated with
reasoning.encrypted_content
in theinclude
parameter.
-
encryptedContent
final ResponseReasoningItem.Builder encryptedContent(Optional<String> encryptedContent)
Alias for calling Builder.encryptedContent with
encryptedContent.orElse(null)
.
-
encryptedContent
final ResponseReasoningItem.Builder encryptedContent(JsonField<String> encryptedContent)
Sets Builder.encryptedContent to an arbitrary JSON value.
You should usually call Builder.encryptedContent with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final ResponseReasoningItem.Builder status(ResponseReasoningItem.Status status)
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
status
final ResponseReasoningItem.Builder status(JsonField<ResponseReasoningItem.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseReasoningItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseReasoningItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseReasoningItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseReasoningItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseReasoningItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseReasoningItem build()
Returns an immutable instance of ResponseReasoningItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .summary()
-
-
-
-