Class BetaResponseCodeInterpreterToolCall.Builder
-
- All Implemented Interfaces:
public final class BetaResponseCodeInterpreterToolCall.BuilderA builder for BetaResponseCodeInterpreterToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseCodeInterpreterToolCall.Builder id(String id)
The unique ID of the code interpreter tool call.
-
id
final BetaResponseCodeInterpreterToolCall.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 BetaResponseCodeInterpreterToolCall.Builder code(String code)
The code to run, or null if not available.
-
code
final BetaResponseCodeInterpreterToolCall.Builder code(Optional<String> code)
Alias for calling Builder.code with
code.orElse(null).
-
code
final BetaResponseCodeInterpreterToolCall.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.
-
containerId
final BetaResponseCodeInterpreterToolCall.Builder containerId(String containerId)
The ID of the container used to run the code.
-
containerId
final BetaResponseCodeInterpreterToolCall.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.
-
outputs
final BetaResponseCodeInterpreterToolCall.Builder outputs(List<BetaResponseCodeInterpreterToolCall.Output> outputs)
The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.
-
outputs
final BetaResponseCodeInterpreterToolCall.Builder outputs(Optional<List<BetaResponseCodeInterpreterToolCall.Output>> outputs)
Alias for calling Builder.outputs with
outputs.orElse(null).
-
outputs
final BetaResponseCodeInterpreterToolCall.Builder outputs(JsonField<List<BetaResponseCodeInterpreterToolCall.Output>> outputs)
Sets Builder.outputs to an arbitrary JSON value.
You should usually call Builder.outputs 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 BetaResponseCodeInterpreterToolCall.Builder addOutput(BetaResponseCodeInterpreterToolCall.Output output)
-
addOutput
final BetaResponseCodeInterpreterToolCall.Builder addOutput(BetaResponseCodeInterpreterToolCall.Output.Logs logs)
Alias for calling addOutput with
Output.ofLogs(logs).
-
addOutput
final BetaResponseCodeInterpreterToolCall.Builder addOutput(BetaResponseCodeInterpreterToolCall.Output.Image image)
Alias for calling addOutput with
Output.ofImage(image).
-
addLogsOutput
final BetaResponseCodeInterpreterToolCall.Builder addLogsOutput(String logs)
Alias for calling addOutput with the following:
Output.Logs.builder() .logs(logs) .build()
-
addImageOutput
final BetaResponseCodeInterpreterToolCall.Builder addImageOutput(String url)
Alias for calling addOutput with the following:
Output.Image.builder() .url(url) .build()
-
status
final BetaResponseCodeInterpreterToolCall.Builder status(BetaResponseCodeInterpreterToolCall.Status status)
The status of the code interpreter tool call. Valid values are
in_progress,completed,incomplete,interpreting, andfailed.
-
status
final BetaResponseCodeInterpreterToolCall.Builder status(JsonField<BetaResponseCodeInterpreterToolCall.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 BetaResponseCodeInterpreterToolCall.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.
-
agent
final BetaResponseCodeInterpreterToolCall.Builder agent(BetaResponseCodeInterpreterToolCall.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseCodeInterpreterToolCall.Builder agent(Optional<BetaResponseCodeInterpreterToolCall.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseCodeInterpreterToolCall.Builder agent(JsonField<BetaResponseCodeInterpreterToolCall.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseCodeInterpreterToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseCodeInterpreterToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseCodeInterpreterToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseCodeInterpreterToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseCodeInterpreterToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseCodeInterpreterToolCall build()
Returns an immutable instance of BetaResponseCodeInterpreterToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .code() .containerId() .outputs() .status()
-
-
-
-