Class ResponseCodeInterpreterToolCall.Builder
-
- All Implemented Interfaces:
public final class ResponseCodeInterpreterToolCall.Builder
A builder for ResponseCodeInterpreterToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseCodeInterpreterToolCall.Builder id(String id)
The unique ID of the code interpreter tool call.
-
id
final ResponseCodeInterpreterToolCall.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.
-
code
final ResponseCodeInterpreterToolCall.Builder code(String code)
The code to run.
-
code
final ResponseCodeInterpreterToolCall.Builder code(JsonField<String> code)
Sets Builder.code to an arbitrary JSON value.
You should usually call Builder.code with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
results
final ResponseCodeInterpreterToolCall.Builder results(List<ResponseCodeInterpreterToolCall.Result> results)
The results of the code interpreter tool call.
-
results
final ResponseCodeInterpreterToolCall.Builder results(JsonField<List<ResponseCodeInterpreterToolCall.Result>> results)
Sets Builder.results to an arbitrary JSON value.
You should usually call Builder.results with a well-typed
List<Result>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResult
final ResponseCodeInterpreterToolCall.Builder addResult(ResponseCodeInterpreterToolCall.Result result)
-
addResult
final ResponseCodeInterpreterToolCall.Builder addResult(ResponseCodeInterpreterToolCall.Result.Logs logs)
Alias for calling addResult with
Result.ofLogs(logs)
.
-
addResult
final ResponseCodeInterpreterToolCall.Builder addResult(ResponseCodeInterpreterToolCall.Result.Files files)
Alias for calling addResult with
Result.ofFiles(files)
.
-
addLogsResult
final ResponseCodeInterpreterToolCall.Builder addLogsResult(String logs)
Alias for calling addResult with the following:
Result.Logs.builder() .logs(logs) .build()
-
addFilesResult
final ResponseCodeInterpreterToolCall.Builder addFilesResult(List<ResponseCodeInterpreterToolCall.Result.Files.File> files)
Alias for calling addResult with the following:
Result.Files.builder() .files(files) .build()
-
status
final ResponseCodeInterpreterToolCall.Builder status(ResponseCodeInterpreterToolCall.Status status)
The status of the code interpreter tool call.
-
status
final ResponseCodeInterpreterToolCall.Builder status(JsonField<ResponseCodeInterpreterToolCall.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.
-
type
final ResponseCodeInterpreterToolCall.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("code_interpreter_call")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
containerId
final ResponseCodeInterpreterToolCall.Builder containerId(String containerId)
The ID of the container used to run the code.
-
containerId
final ResponseCodeInterpreterToolCall.Builder containerId(JsonField<String> containerId)
Sets Builder.containerId to an arbitrary JSON value.
You should usually call Builder.containerId 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 ResponseCodeInterpreterToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseCodeInterpreterToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseCodeInterpreterToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseCodeInterpreterToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseCodeInterpreterToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseCodeInterpreterToolCall build()
Returns an immutable instance of ResponseCodeInterpreterToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .code() .results() .status()
-
-
-
-