Class ResponseInputItem.ShellCallOutput.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.ShellCallOutput.BuilderA builder for ShellCallOutput.
-
-
Method Summary
-
-
Method Detail
-
callId
final ResponseInputItem.ShellCallOutput.Builder callId(String callId)
The unique ID of the function shell tool call generated by the model.
-
callId
final ResponseInputItem.ShellCallOutput.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.
-
output
final ResponseInputItem.ShellCallOutput.Builder output(List<ResponseFunctionShellCallOutputContent> output)
Captured chunks of stdout and stderr output, along with their associated outcomes.
-
output
final ResponseInputItem.ShellCallOutput.Builder output(JsonField<List<ResponseFunctionShellCallOutputContent>> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed
List<ResponseFunctionShellCallOutputContent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addOutput
final ResponseInputItem.ShellCallOutput.Builder addOutput(ResponseFunctionShellCallOutputContent output)
Adds a single ResponseFunctionShellCallOutputContent to Builder.output.
-
type
final ResponseInputItem.ShellCallOutput.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_output")This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final ResponseInputItem.ShellCallOutput.Builder id(String id)
The unique ID of the function shell tool call output. Populated when this item is returned via API.
-
id
final ResponseInputItem.ShellCallOutput.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final ResponseInputItem.ShellCallOutput.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.
-
maxOutputLength
final ResponseInputItem.ShellCallOutput.Builder maxOutputLength(Long maxOutputLength)
The maximum number of UTF-8 characters captured for this shell call's combined output.
-
maxOutputLength
final ResponseInputItem.ShellCallOutput.Builder maxOutputLength(Long maxOutputLength)
Alias for Builder.maxOutputLength.
This unboxed primitive overload exists for backwards compatibility.
-
maxOutputLength
final ResponseInputItem.ShellCallOutput.Builder maxOutputLength(Optional<Long> maxOutputLength)
Alias for calling Builder.maxOutputLength with
maxOutputLength.orElse(null).
-
maxOutputLength
final ResponseInputItem.ShellCallOutput.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.
-
additionalProperties
final ResponseInputItem.ShellCallOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.ShellCallOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.ShellCallOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.ShellCallOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.ShellCallOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.ShellCallOutput build()
Returns an immutable instance of ShellCallOutput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.callId() .output()
-
-
-
-