Class BetaResponseInputItem.ShellCall.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ShellCall.BuilderA builder for ShellCall.
-
-
Method Summary
-
-
Method Detail
-
action
final BetaResponseInputItem.ShellCall.Builder action(BetaResponseInputItem.ShellCall.Action action)
The shell commands and limits that describe how to run the tool call.
-
action
final BetaResponseInputItem.ShellCall.Builder action(JsonField<BetaResponseInputItem.ShellCall.Action> action)
Sets Builder.action to an arbitrary JSON value.
You should usually call Builder.action with a well-typed Action value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
callId
final BetaResponseInputItem.ShellCall.Builder callId(String callId)
The unique ID of the shell tool call generated by the model.
-
callId
final BetaResponseInputItem.ShellCall.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId 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.ShellCall.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("shell_call")This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final BetaResponseInputItem.ShellCall.Builder id(String id)
The unique ID of the shell tool call. Populated when this item is returned via API.
-
id
final BetaResponseInputItem.ShellCall.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final BetaResponseInputItem.ShellCall.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.ShellCall.Builder agent(BetaResponseInputItem.ShellCall.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseInputItem.ShellCall.Builder agent(Optional<BetaResponseInputItem.ShellCall.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseInputItem.ShellCall.Builder agent(JsonField<BetaResponseInputItem.ShellCall.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.
-
caller
final BetaResponseInputItem.ShellCall.Builder caller(BetaResponseInputItem.ShellCall.Caller caller)
The execution context that produced this tool call.
-
caller
final BetaResponseInputItem.ShellCall.Builder caller(Optional<BetaResponseInputItem.ShellCall.Caller> caller)
Alias for calling Builder.caller with
caller.orElse(null).
-
caller
final BetaResponseInputItem.ShellCall.Builder caller(JsonField<BetaResponseInputItem.ShellCall.Caller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed Caller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseInputItem.ShellCall.Builder caller(BetaResponseInputItem.ShellCall.Caller.Program program)
Alias for calling caller with
Caller.ofProgram(program).
-
callerDirect
final BetaResponseInputItem.ShellCall.Builder callerDirect()
Alias for calling caller with
Caller.ofDirect().
-
programCaller
final BetaResponseInputItem.ShellCall.Builder programCaller(String callerId)
Alias for calling caller with the following:
Caller.Program.builder() .callerId(callerId) .build()
-
environment
final BetaResponseInputItem.ShellCall.Builder environment(BetaResponseInputItem.ShellCall.Environment environment)
The environment to execute the shell commands in.
-
environment
final BetaResponseInputItem.ShellCall.Builder environment(Optional<BetaResponseInputItem.ShellCall.Environment> environment)
Alias for calling Builder.environment with
environment.orElse(null).
-
environment
final BetaResponseInputItem.ShellCall.Builder environment(JsonField<BetaResponseInputItem.ShellCall.Environment> environment)
Sets Builder.environment to an arbitrary JSON value.
You should usually call Builder.environment with a well-typed Environment value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
environment
final BetaResponseInputItem.ShellCall.Builder environment(BetaLocalEnvironment local)
Alias for calling environment with
Environment.ofLocal(local).
-
environment
final BetaResponseInputItem.ShellCall.Builder environment(BetaContainerReference containerReference)
Alias for calling environment with
Environment.ofContainerReference(containerReference).
-
containerReferenceEnvironment
final BetaResponseInputItem.ShellCall.Builder containerReferenceEnvironment(String containerId)
Alias for calling environment with the following:
BetaContainerReference.builder() .containerId(containerId) .build()
-
status
final BetaResponseInputItem.ShellCall.Builder status(BetaResponseInputItem.ShellCall.Status status)
The status of the shell call. One of
in_progress,completed, orincomplete.
-
status
final BetaResponseInputItem.ShellCall.Builder status(Optional<BetaResponseInputItem.ShellCall.Status> status)
Alias for calling Builder.status with
status.orElse(null).
-
status
final BetaResponseInputItem.ShellCall.Builder status(JsonField<BetaResponseInputItem.ShellCall.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseInputItem.ShellCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputItem.ShellCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputItem.ShellCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputItem.ShellCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputItem.ShellCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputItem.ShellCall build()
Returns an immutable instance of ShellCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.action() .callId()
-
-
-
-