Class BetaManagedAgentsAgentMessageEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentMessageEvent.BuilderA builder for BetaManagedAgentsAgentMessageEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsAgentMessageEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsAgentMessageEvent.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 BetaManagedAgentsAgentMessageEvent.Builder content(List<BetaManagedAgentsAgentMessageEvent.Content> content)
Array of text blocks comprising the agent response.
-
content
final BetaManagedAgentsAgentMessageEvent.Builder content(JsonField<List<BetaManagedAgentsAgentMessageEvent.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.
-
processedAt
final BetaManagedAgentsAgentMessageEvent.Builder processedAt(OffsetDateTime processedAt)
Timestamp when this response was generated.
-
processedAt
final BetaManagedAgentsAgentMessageEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsAgentMessageEvent.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.
-
additionalProperties
final BetaManagedAgentsAgentMessageEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addContent
final BetaManagedAgentsAgentMessageEvent.Builder addContent(BetaManagedAgentsAgentMessageEvent.Content content)
Adds a single Content to Builder.content.
-
addContent
final BetaManagedAgentsAgentMessageEvent.Builder addContent(BetaManagedAgentsTextBlock text)
Alias for calling addContent with
Content.ofText(text).
-
addContent
final BetaManagedAgentsAgentMessageEvent.Builder addContent(BetaManagedAgentsRedactedBlock redacted)
Alias for calling addContent with
Content.ofRedacted(redacted).
-
addTextContent
final BetaManagedAgentsAgentMessageEvent.Builder addTextContent(String text)
Alias for calling addContent with the following:
BetaManagedAgentsTextBlock.builder() .text(text) .build()
-
putAdditionalProperty
final BetaManagedAgentsAgentMessageEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsAgentMessageEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsAgentMessageEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsAgentMessageEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsAgentMessageEvent build()
Returns an immutable instance of BetaManagedAgentsAgentMessageEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .content() .processedAt()
-
-
-
-