Class BetaManagedAgentsAgentCustomToolUseEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentCustomToolUseEvent.BuilderA builder for BetaManagedAgentsAgentCustomToolUseEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsAgentCustomToolUseEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsAgentCustomToolUseEvent.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.
-
input
final BetaManagedAgentsAgentCustomToolUseEvent.Builder input(BetaManagedAgentsAgentCustomToolUseEvent.Input input)
Input parameters for the tool call.
-
input
final BetaManagedAgentsAgentCustomToolUseEvent.Builder input(JsonField<BetaManagedAgentsAgentCustomToolUseEvent.Input> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed Input value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaManagedAgentsAgentCustomToolUseEvent.Builder name(String name)
Name of the custom tool being called.
-
name
final BetaManagedAgentsAgentCustomToolUseEvent.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
processedAt
final BetaManagedAgentsAgentCustomToolUseEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsAgentCustomToolUseEvent.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 BetaManagedAgentsAgentCustomToolUseEvent.Builder type(BetaManagedAgentsAgentCustomToolUseEvent.Type type)
-
type
final BetaManagedAgentsAgentCustomToolUseEvent.Builder type(JsonField<BetaManagedAgentsAgentCustomToolUseEvent.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.
-
sessionThreadId
final BetaManagedAgentsAgentCustomToolUseEvent.Builder sessionThreadId(String sessionThreadId)
When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Echo this on a
user.custom_tool_resultevent to route the result back.
-
sessionThreadId
final BetaManagedAgentsAgentCustomToolUseEvent.Builder sessionThreadId(Optional<String> sessionThreadId)
Alias for calling Builder.sessionThreadId with
sessionThreadId.orElse(null).
-
sessionThreadId
final BetaManagedAgentsAgentCustomToolUseEvent.Builder sessionThreadId(JsonField<String> sessionThreadId)
Sets Builder.sessionThreadId to an arbitrary JSON value.
You should usually call Builder.sessionThreadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsAgentCustomToolUseEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsAgentCustomToolUseEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsAgentCustomToolUseEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsAgentCustomToolUseEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsAgentCustomToolUseEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsAgentCustomToolUseEvent build()
Returns an immutable instance of BetaManagedAgentsAgentCustomToolUseEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input() .name() .processedAt() .type()
-
-
-
-