Class ResponseFunctionShellToolCallOutput.Builder
-
- All Implemented Interfaces:
public final class ResponseFunctionShellToolCallOutput.BuilderA builder for ResponseFunctionShellToolCallOutput.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseFunctionShellToolCallOutput.Builder id(String id)
The unique ID of the shell call output. Populated when this item is returned via API.
-
id
final ResponseFunctionShellToolCallOutput.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.
-
callId
final ResponseFunctionShellToolCallOutput.Builder callId(String callId)
The unique ID of the shell tool call generated by the model.
-
callId
final ResponseFunctionShellToolCallOutput.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.
-
maxOutputLength
final ResponseFunctionShellToolCallOutput.Builder maxOutputLength(Long maxOutputLength)
The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.
-
maxOutputLength
final ResponseFunctionShellToolCallOutput.Builder maxOutputLength(Long maxOutputLength)
Alias for Builder.maxOutputLength.
This unboxed primitive overload exists for backwards compatibility.
-
maxOutputLength
final ResponseFunctionShellToolCallOutput.Builder maxOutputLength(Optional<Long> maxOutputLength)
Alias for calling Builder.maxOutputLength with
maxOutputLength.orElse(null).
-
maxOutputLength
final ResponseFunctionShellToolCallOutput.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.
-
output
final ResponseFunctionShellToolCallOutput.Builder output(List<ResponseFunctionShellToolCallOutput.Output> output)
An array of shell call output contents
-
output
final ResponseFunctionShellToolCallOutput.Builder output(JsonField<List<ResponseFunctionShellToolCallOutput.Output>> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed
List<Output>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addOutput
final ResponseFunctionShellToolCallOutput.Builder addOutput(ResponseFunctionShellToolCallOutput.Output output)
Adds a single Output to Builder.output.
-
type
final ResponseFunctionShellToolCallOutput.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.
-
createdBy
final ResponseFunctionShellToolCallOutput.Builder createdBy(String createdBy)
-
createdBy
final ResponseFunctionShellToolCallOutput.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseFunctionShellToolCallOutput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseFunctionShellToolCallOutput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseFunctionShellToolCallOutput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseFunctionShellToolCallOutput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseFunctionShellToolCallOutput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseFunctionShellToolCallOutput build()
Returns an immutable instance of ResponseFunctionShellToolCallOutput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .callId() .maxOutputLength() .output()
-
-
-
-