Package com.openai.models.responses
Class ResponseReasoningItem.Content.Builder
-
- All Implemented Interfaces:
public final class ResponseReasoningItem.Content.Builder
A builder for Content.
-
-
Method Summary
Modifier and Type Method Description final ResponseReasoningItem.Content.Builder
text(String text)
Reasoning text output from the model. final ResponseReasoningItem.Content.Builder
text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value. final ResponseReasoningItem.Content.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ResponseReasoningItem.Content.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseReasoningItem.Content.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseReasoningItem.Content.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseReasoningItem.Content.Builder
removeAdditionalProperty(String key)
final ResponseReasoningItem.Content.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseReasoningItem.Content
build()
Returns an immutable instance of Content. -
-
Method Detail
-
text
final ResponseReasoningItem.Content.Builder text(String text)
Reasoning text output from the model.
-
text
final ResponseReasoningItem.Content.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseReasoningItem.Content.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_text")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseReasoningItem.Content.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseReasoningItem.Content.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseReasoningItem.Content.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseReasoningItem.Content.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseReasoningItem.Content.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseReasoningItem.Content build()
Returns an immutable instance of Content.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-