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<BetaManagedAgentsTextBlock> content)
Array of text blocks comprising the agent response.
-
content
final BetaManagedAgentsAgentMessageEvent.Builder content(JsonField<List<BetaManagedAgentsTextBlock>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<BetaManagedAgentsTextBlock>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaManagedAgentsAgentMessageEvent.Builder addContent(BetaManagedAgentsTextBlock content)
Adds a single BetaManagedAgentsTextBlock to Builder.content.
-
processedAt
final BetaManagedAgentsAgentMessageEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
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(BetaManagedAgentsAgentMessageEvent.Type type)
-
type
final BetaManagedAgentsAgentMessageEvent.Builder type(JsonField<BetaManagedAgentsAgentMessageEvent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. 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)
-
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() .type()
-
-
-
-