Class BetaResponseItem.AgentMessage.Builder
-
- All Implemented Interfaces:
public final class BetaResponseItem.AgentMessage.BuilderA builder for AgentMessage.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseItem.AgentMessage.Builder id(String id)
The unique ID of the agent message.
-
id
final BetaResponseItem.AgentMessage.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.
-
author
final BetaResponseItem.AgentMessage.Builder author(String author)
The sending agent identity.
-
author
final BetaResponseItem.AgentMessage.Builder author(JsonField<String> author)
Sets Builder.author to an arbitrary JSON value.
You should usually call Builder.author 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 BetaResponseItem.AgentMessage.Builder content(List<BetaResponseItem.AgentMessage.Content> content)
Encrypted content sent between agents.
-
content
final BetaResponseItem.AgentMessage.Builder content(JsonField<List<BetaResponseItem.AgentMessage.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 BetaResponseItem.AgentMessage.Builder addContent(BetaResponseItem.AgentMessage.Content content)
Adds a single Content to Builder.content.
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseInputText inputText)
Alias for calling addContent with
Content.ofInputText(inputText).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseOutputText outputText)
Alias for calling addContent with
Content.ofOutputText(outputText).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseItem.AgentMessage.Content.Text text)
Alias for calling addContent with
Content.ofText(text).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseItem.AgentMessage.Content.SummaryText summaryText)
Alias for calling addContent with
Content.ofSummaryText(summaryText).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseItem.AgentMessage.Content.ReasoningText reasoningText)
Alias for calling addContent with
Content.ofReasoningText(reasoningText).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseOutputRefusal refusal)
Alias for calling addContent with
Content.ofRefusal(refusal).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseInputImage inputImage)
Alias for calling addContent with
Content.ofInputImage(inputImage).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseItem.AgentMessage.Content.ComputerScreenshot computerScreenshot)
Alias for calling addContent with
Content.ofComputerScreenshot(computerScreenshot).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseInputFile inputFile)
Alias for calling addContent with
Content.ofInputFile(inputFile).
-
addContent
final BetaResponseItem.AgentMessage.Builder addContent(BetaResponseItem.AgentMessage.Content.EncryptedContent encrypted)
Alias for calling addContent with
Content.ofEncrypted(encrypted).
-
addInputTextContent
final BetaResponseItem.AgentMessage.Builder addInputTextContent(String text)
Alias for calling addContent with the following:
BetaResponseInputText.builder() .text(text) .build()
-
addTextContent
final BetaResponseItem.AgentMessage.Builder addTextContent(String text)
Alias for calling addContent with the following:
Content.Text.builder() .text(text) .build()
-
addSummaryTextContent
final BetaResponseItem.AgentMessage.Builder addSummaryTextContent(String text)
Alias for calling addContent with the following:
Content.SummaryText.builder() .text(text) .build()
-
addReasoningTextContent
final BetaResponseItem.AgentMessage.Builder addReasoningTextContent(String text)
Alias for calling addContent with the following:
Content.ReasoningText.builder() .text(text) .build()
-
addRefusalContent
final BetaResponseItem.AgentMessage.Builder addRefusalContent(String refusal)
Alias for calling addContent with the following:
BetaResponseOutputRefusal.builder() .refusal(refusal) .build()
-
addInputImageContent
final BetaResponseItem.AgentMessage.Builder addInputImageContent(BetaResponseInputImage.Detail detail)
Alias for calling addContent with the following:
BetaResponseInputImage.builder() .detail(detail) .build()
-
addEncryptedContent
final BetaResponseItem.AgentMessage.Builder addEncryptedContent(String encryptedContent)
Alias for calling addContent with the following:
Content.EncryptedContent.builder() .encryptedContent(encryptedContent) .build()
-
recipient
final BetaResponseItem.AgentMessage.Builder recipient(String recipient)
The destination agent identity.
-
recipient
final BetaResponseItem.AgentMessage.Builder recipient(JsonField<String> recipient)
Sets Builder.recipient to an arbitrary JSON value.
You should usually call Builder.recipient 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 BetaResponseItem.AgentMessage.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("agent_message")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseItem.AgentMessage.Builder agent(BetaResponseItem.AgentMessage.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseItem.AgentMessage.Builder agent(JsonField<BetaResponseItem.AgentMessage.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.
-
additionalProperties
final BetaResponseItem.AgentMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseItem.AgentMessage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseItem.AgentMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseItem.AgentMessage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseItem.AgentMessage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseItem.AgentMessage build()
Returns an immutable instance of AgentMessage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .author() .content() .recipient()
-
-
-
-