Class BetaResponseInputItem.AgentMessage.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.AgentMessage.BuilderA builder for AgentMessage.
-
-
Method Summary
-
-
Method Detail
-
author
final BetaResponseInputItem.AgentMessage.Builder author(String author)
The sending agent identity.
-
author
final BetaResponseInputItem.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 BetaResponseInputItem.AgentMessage.Builder content(List<BetaResponseInputItem.AgentMessage.Content> content)
Plaintext, image, or encrypted content sent between agents.
-
content
final BetaResponseInputItem.AgentMessage.Builder content(JsonField<List<BetaResponseInputItem.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 BetaResponseInputItem.AgentMessage.Builder addContent(BetaResponseInputItem.AgentMessage.Content content)
Adds a single Content to Builder.content.
-
addContent
final BetaResponseInputItem.AgentMessage.Builder addContent(BetaResponseInputTextContent inputText)
Alias for calling addContent with
Content.ofInputText(inputText).
-
addContent
final BetaResponseInputItem.AgentMessage.Builder addContent(BetaResponseInputImageContent inputImage)
Alias for calling addContent with
Content.ofInputImage(inputImage).
-
addContent
final BetaResponseInputItem.AgentMessage.Builder addContent(BetaResponseInputItem.AgentMessage.Content.EncryptedContent encrypted)
Alias for calling addContent with
Content.ofEncrypted(encrypted).
-
addInputTextContent
final BetaResponseInputItem.AgentMessage.Builder addInputTextContent(String text)
Alias for calling addContent with the following:
BetaResponseInputTextContent.builder() .text(text) .build()
-
addEncryptedContent
final BetaResponseInputItem.AgentMessage.Builder addEncryptedContent(String encryptedContent)
Alias for calling addContent with the following:
Content.EncryptedContent.builder() .encryptedContent(encryptedContent) .build()
-
recipient
final BetaResponseInputItem.AgentMessage.Builder recipient(String recipient)
The destination agent identity.
-
recipient
final BetaResponseInputItem.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 BetaResponseInputItem.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.
-
id
final BetaResponseInputItem.AgentMessage.Builder id(String id)
The unique ID of this agent message item.
-
id
final BetaResponseInputItem.AgentMessage.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final BetaResponseInputItem.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.
-
agent
final BetaResponseInputItem.AgentMessage.Builder agent(BetaResponseInputItem.AgentMessage.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseInputItem.AgentMessage.Builder agent(Optional<BetaResponseInputItem.AgentMessage.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseInputItem.AgentMessage.Builder agent(JsonField<BetaResponseInputItem.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 BetaResponseInputItem.AgentMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputItem.AgentMessage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputItem.AgentMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputItem.AgentMessage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputItem.AgentMessage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputItem.AgentMessage build()
Returns an immutable instance of AgentMessage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.author() .content() .recipient()
-
-
-
-