Class ResponseInputItem.ShellCall.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.ShellCall.BuilderA builder for ShellCall.
-
-
Method Summary
-
-
Method Detail
-
action
final ResponseInputItem.ShellCall.Builder action(ResponseInputItem.ShellCall.Action action)
The shell commands and limits that describe how to run the tool call.
-
action
final ResponseInputItem.ShellCall.Builder action(JsonField<ResponseInputItem.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 ResponseInputItem.ShellCall.Builder callId(String callId)
The unique ID of the function shell tool call generated by the model.
-
callId
final ResponseInputItem.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 ResponseInputItem.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 ResponseInputItem.ShellCall.Builder id(String id)
The unique ID of the function shell tool call. Populated when this item is returned via API.
-
id
final ResponseInputItem.ShellCall.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final ResponseInputItem.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.
-
status
final ResponseInputItem.ShellCall.Builder status(ResponseInputItem.ShellCall.Status status)
The status of the shell call. One of
in_progress,completed, orincomplete.
-
status
final ResponseInputItem.ShellCall.Builder status(Optional<ResponseInputItem.ShellCall.Status> status)
Alias for calling Builder.status with
status.orElse(null).
-
status
final ResponseInputItem.ShellCall.Builder status(JsonField<ResponseInputItem.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 ResponseInputItem.ShellCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.ShellCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.ShellCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.ShellCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.ShellCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.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()
-
-
-
-