Class ResponseFunctionShellToolCall.Action.Builder
-
- All Implemented Interfaces:
public final class ResponseFunctionShellToolCall.Action.BuilderA builder for Action.
-
-
Method Summary
-
-
Method Detail
-
commands
final ResponseFunctionShellToolCall.Action.Builder commands(List<String> commands)
-
commands
final ResponseFunctionShellToolCall.Action.Builder commands(JsonField<List<String>> commands)
Sets Builder.commands to an arbitrary JSON value.
You should usually call Builder.commands with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addCommand
final ResponseFunctionShellToolCall.Action.Builder addCommand(String command)
-
maxOutputLength
final ResponseFunctionShellToolCall.Action.Builder maxOutputLength(Long maxOutputLength)
Optional maximum number of characters to return from each command.
-
maxOutputLength
final ResponseFunctionShellToolCall.Action.Builder maxOutputLength(Long maxOutputLength)
Alias for Builder.maxOutputLength.
This unboxed primitive overload exists for backwards compatibility.
-
maxOutputLength
final ResponseFunctionShellToolCall.Action.Builder maxOutputLength(Optional<Long> maxOutputLength)
Alias for calling Builder.maxOutputLength with
maxOutputLength.orElse(null).
-
maxOutputLength
final ResponseFunctionShellToolCall.Action.Builder maxOutputLength(JsonField<Long> maxOutputLength)
Sets Builder.maxOutputLength to an arbitrary JSON value.
You should usually call Builder.maxOutputLength with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timeoutMs
final ResponseFunctionShellToolCall.Action.Builder timeoutMs(Long timeoutMs)
Optional timeout in milliseconds for the commands.
-
timeoutMs
final ResponseFunctionShellToolCall.Action.Builder timeoutMs(Long timeoutMs)
Alias for Builder.timeoutMs.
This unboxed primitive overload exists for backwards compatibility.
-
timeoutMs
final ResponseFunctionShellToolCall.Action.Builder timeoutMs(Optional<Long> timeoutMs)
Alias for calling Builder.timeoutMs with
timeoutMs.orElse(null).
-
timeoutMs
final ResponseFunctionShellToolCall.Action.Builder timeoutMs(JsonField<Long> timeoutMs)
Sets Builder.timeoutMs to an arbitrary JSON value.
You should usually call Builder.timeoutMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseFunctionShellToolCall.Action.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseFunctionShellToolCall.Action.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseFunctionShellToolCall.Action.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseFunctionShellToolCall.Action.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseFunctionShellToolCall.Action.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseFunctionShellToolCall.Action build()
Returns an immutable instance of Action.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.commands() .maxOutputLength() .timeoutMs()
-
-
-
-