Class ResponseInputItem.LocalShellCall
-
- All Implemented Interfaces:
public final class ResponseInputItem.LocalShellCall
A tool call to run a command on the local shell.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputItem.LocalShellCall.Builder
A builder for LocalShellCall.
public final class
ResponseInputItem.LocalShellCall.Action
Execute a shell command on the server.
public final class
ResponseInputItem.LocalShellCall.Status
The status of the local shell call.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the local shell call. final ResponseInputItem.LocalShellCall.Action
action()
Execute a shell command on the server. final String
callId()
The unique ID of the local shell tool call generated by the model. final ResponseInputItem.LocalShellCall.Status
status()
The status of the local shell call. final JsonValue
_type()
The type of the local shell call. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<ResponseInputItem.LocalShellCall.Action>
_action()
Returns the raw JSON value of action. final JsonField<String>
_callId()
Returns the raw JSON value of callId. final JsonField<ResponseInputItem.LocalShellCall.Status>
_status()
Returns the raw JSON value of status. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputItem.LocalShellCall.Builder
toBuilder()
final ResponseInputItem.LocalShellCall
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputItem.LocalShellCall.Builder
builder()
Returns a mutable builder for constructing an instance of LocalShellCall. -
-
Method Detail
-
action
final ResponseInputItem.LocalShellCall.Action action()
Execute a shell command on the server.
-
status
final ResponseInputItem.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).
-
_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<ResponseInputItem.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<ResponseInputItem.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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.LocalShellCall.Builder toBuilder()
-
validate
final ResponseInputItem.LocalShellCall validate()
-
builder
final static ResponseInputItem.LocalShellCall.Builder builder()
Returns a mutable builder for constructing an instance of LocalShellCall.
The following fields are required:
.id() .action() .callId() .status()
-
-
-
-