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