Class BetaResponseInputItem.LocalShellCall
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.LocalShellCallA tool call to run a command on the local shell.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.LocalShellCall.BuilderA builder for LocalShellCall.
public final classBetaResponseInputItem.LocalShellCall.ActionExecute a shell command on the server.
public final classBetaResponseInputItem.LocalShellCall.StatusThe status of the local shell call.
public final classBetaResponseInputItem.LocalShellCall.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the local shell call. final BetaResponseInputItem.LocalShellCall.Actionaction()Execute a shell command on the server. final StringcallId()The unique ID of the local shell tool call generated by the model. final BetaResponseInputItem.LocalShellCall.Statusstatus()The status of the local shell call. final JsonValue_type()The type of the local shell call. final Optional<BetaResponseInputItem.LocalShellCall.Agent>agent()The agent that produced this item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.LocalShellCall.Action>_action()Returns the raw JSON value of action. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseInputItem.LocalShellCall.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseInputItem.LocalShellCall.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.LocalShellCall.BuildertoBuilder()final BetaResponseInputItem.LocalShellCallvalidate()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.LocalShellCall.Builderbuilder()Returns a mutable builder for constructing an instance of LocalShellCall. -
-
Method Detail
-
action
final BetaResponseInputItem.LocalShellCall.Action action()
Execute a shell command on the server.
-
status
final BetaResponseInputItem.LocalShellCall.Status status()
The status of the local shell call.
-
_type
final JsonValue _type()
The type of the local shell call. Always
local_shell_call.Expected to always return the following:
JsonValue.from("local_shell_call")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseInputItem.LocalShellCall.Agent> agent()
The agent that produced this item.
-
_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.
-
_action
final JsonField<BetaResponseInputItem.LocalShellCall.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.
-
_status
final JsonField<BetaResponseInputItem.LocalShellCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseInputItem.LocalShellCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputItem.LocalShellCall.Builder toBuilder()
-
validate
final BetaResponseInputItem.LocalShellCall 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.LocalShellCall.Builder builder()
Returns a mutable builder for constructing an instance of LocalShellCall.
The following fields are required:
.id() .action() .callId() .status()
-
-
-
-