Class BetaResponseInputItem.ShellCall
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ShellCallA tool representing a request to execute one or more shell commands.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ShellCall.BuilderA builder for ShellCall.
public final classBetaResponseInputItem.ShellCall.ActionThe shell commands and limits that describe how to run the tool call.
public final classBetaResponseInputItem.ShellCall.AgentThe agent that produced this item.
public final classBetaResponseInputItem.ShellCall.CallerThe execution context that produced this tool call.
public final classBetaResponseInputItem.ShellCall.EnvironmentThe environment to execute the shell commands in.
public final classBetaResponseInputItem.ShellCall.StatusThe status of the shell call. One of
in_progress,completed, orincomplete.
-
Method Summary
Modifier and Type Method Description final BetaResponseInputItem.ShellCall.Actionaction()The shell commands and limits that describe how to run the tool call. final StringcallId()The unique ID of the shell tool call generated by the model. final JsonValue_type()The type of the item. final Optional<String>id()The unique ID of the shell tool call. final Optional<BetaResponseInputItem.ShellCall.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputItem.ShellCall.Caller>caller()The execution context that produced this tool call. final Optional<BetaResponseInputItem.ShellCall.Environment>environment()The environment to execute the shell commands in. final Optional<BetaResponseInputItem.ShellCall.Status>status()The status of the shell call. final JsonField<BetaResponseInputItem.ShellCall.Action>_action()Returns the raw JSON value of action. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.ShellCall.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputItem.ShellCall.Caller>_caller()Returns the raw JSON value of caller. final JsonField<BetaResponseInputItem.ShellCall.Environment>_environment()Returns the raw JSON value of environment. final JsonField<BetaResponseInputItem.ShellCall.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ShellCall.BuildertoBuilder()final BetaResponseInputItem.ShellCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputItem.ShellCall.Builderbuilder()Returns a mutable builder for constructing an instance of ShellCall. -
-
Method Detail
-
action
final BetaResponseInputItem.ShellCall.Action action()
The shell commands and limits that describe how to run the tool call.
-
_type
final JsonValue _type()
The type of the item. Always
shell_call.Expected to always return the following:
JsonValue.from("shell_call")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
id
final Optional<String> id()
The unique ID of the shell tool call. Populated when this item is returned via API.
-
agent
final Optional<BetaResponseInputItem.ShellCall.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseInputItem.ShellCall.Caller> caller()
The execution context that produced this tool call.
-
environment
final Optional<BetaResponseInputItem.ShellCall.Environment> environment()
The environment to execute the shell commands in.
-
status
final Optional<BetaResponseInputItem.ShellCall.Status> status()
The status of the shell call. One of
in_progress,completed, orincomplete.
-
_action
final JsonField<BetaResponseInputItem.ShellCall.Action> _action()
Returns the raw JSON value of action.
Unlike action, this method doesn't throw if the JSON field has an unexpected type.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseInputItem.ShellCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_caller
final JsonField<BetaResponseInputItem.ShellCall.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_environment
final JsonField<BetaResponseInputItem.ShellCall.Environment> _environment()
Returns the raw JSON value of environment.
Unlike environment, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseInputItem.ShellCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputItem.ShellCall.Builder toBuilder()
-
validate
final BetaResponseInputItem.ShellCall validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseInputItem.ShellCall.Builder builder()
Returns a mutable builder for constructing an instance of ShellCall.
The following fields are required:
.action() .callId()
-
-
-
-