Class BetaResponseReasoningItem.Builder
-
- All Implemented Interfaces:
public final class BetaResponseReasoningItem.BuilderA builder for BetaResponseReasoningItem.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseReasoningItem.Builder id(String id)
The unique identifier of the reasoning content.
-
id
final BetaResponseReasoningItem.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 BetaResponseReasoningItem.Builder summary(List<BetaResponseReasoningItem.Summary> summary)
Reasoning summary content.
-
summary
final BetaResponseReasoningItem.Builder summary(JsonField<List<BetaResponseReasoningItem.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 BetaResponseReasoningItem.Builder addSummary(BetaResponseReasoningItem.Summary summary)
Adds a single Summary to Builder.summary.
-
type
final BetaResponseReasoningItem.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.
-
agent
final BetaResponseReasoningItem.Builder agent(BetaResponseReasoningItem.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseReasoningItem.Builder agent(Optional<BetaResponseReasoningItem.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseReasoningItem.Builder agent(JsonField<BetaResponseReasoningItem.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaResponseReasoningItem.Builder content(List<BetaResponseReasoningItem.Content> content)
Reasoning text content.
-
content
final BetaResponseReasoningItem.Builder content(JsonField<List<BetaResponseReasoningItem.Content>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<Content>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaResponseReasoningItem.Builder addContent(BetaResponseReasoningItem.Content content)
Adds a single Content to Builder.content.
-
encryptedContent
final BetaResponseReasoningItem.Builder encryptedContent(String encryptedContent)
The encrypted content of the reasoning item - populated when a response is generated with
reasoning.encrypted_contentin theincludeparameter.
-
encryptedContent
final BetaResponseReasoningItem.Builder encryptedContent(Optional<String> encryptedContent)
Alias for calling Builder.encryptedContent with
encryptedContent.orElse(null).
-
encryptedContent
final BetaResponseReasoningItem.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 BetaResponseReasoningItem.Builder status(BetaResponseReasoningItem.Status status)
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
status
final BetaResponseReasoningItem.Builder status(JsonField<BetaResponseReasoningItem.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 BetaResponseReasoningItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseReasoningItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseReasoningItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseReasoningItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseReasoningItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseReasoningItem build()
Returns an immutable instance of BetaResponseReasoningItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .summary()
-
-
-
-