Class BetaResponseInputMessageItem.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputMessageItem.BuilderA builder for BetaResponseInputMessageItem.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseInputMessageItem.Builder id(String id)
The unique ID of the message input.
-
id
final BetaResponseInputMessageItem.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.
-
content
final BetaResponseInputMessageItem.Builder content(List<BetaResponseInputContent> content)
A list of one or many input items to the model, containing different content types.
-
content
final BetaResponseInputMessageItem.Builder content(JsonField<List<BetaResponseInputContent>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<BetaResponseInputContent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaResponseInputMessageItem.Builder addContent(BetaResponseInputContent content)
Adds a single BetaResponseInputContent to Builder.content.
-
addContent
final BetaResponseInputMessageItem.Builder addContent(BetaResponseInputText inputText)
Alias for calling addContent with
BetaResponseInputContent.ofInputText(inputText).
-
addContent
final BetaResponseInputMessageItem.Builder addContent(BetaResponseInputImage inputImage)
Alias for calling addContent with
BetaResponseInputContent.ofInputImage(inputImage).
-
addContent
final BetaResponseInputMessageItem.Builder addContent(BetaResponseInputFile inputFile)
Alias for calling addContent with
BetaResponseInputContent.ofInputFile(inputFile).
-
addInputTextContent
final BetaResponseInputMessageItem.Builder addInputTextContent(String text)
Alias for calling addContent with the following:
BetaResponseInputText.builder() .text(text) .build()
-
addInputImageContent
final BetaResponseInputMessageItem.Builder addInputImageContent(BetaResponseInputImage.Detail detail)
Alias for calling addContent with the following:
BetaResponseInputImage.builder() .detail(detail) .build()
-
role
final BetaResponseInputMessageItem.Builder role(BetaResponseInputMessageItem.Role role)
The role of the message input. One of
user,system, ordeveloper.
-
role
final BetaResponseInputMessageItem.Builder role(JsonField<BetaResponseInputMessageItem.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseInputMessageItem.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("message")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseInputMessageItem.Builder agent(BetaResponseInputMessageItem.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseInputMessageItem.Builder agent(Optional<BetaResponseInputMessageItem.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseInputMessageItem.Builder agent(JsonField<BetaResponseInputMessageItem.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.
-
status
final BetaResponseInputMessageItem.Builder status(BetaResponseInputMessageItem.Status status)
The status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
status
final BetaResponseInputMessageItem.Builder status(JsonField<BetaResponseInputMessageItem.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 BetaResponseInputMessageItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputMessageItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputMessageItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputMessageItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputMessageItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputMessageItem build()
Returns an immutable instance of BetaResponseInputMessageItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .content() .role()
-
-
-
-