Class ResponseCodeInterpreterToolCall.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ResponseCodeInterpreterToolCall.BuilderA 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, or null if not available.
 
- 
                                        
code
final ResponseCodeInterpreterToolCall.Builder code(Optional<String> code)
Alias for calling Builder.code with
code.orElse(null). 
- 
                                        
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.
 
- 
                                        
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.
 
- 
                                        
outputs
final ResponseCodeInterpreterToolCall.Builder outputs(List<ResponseCodeInterpreterToolCall.Output> outputs)
The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.
 
- 
                                        
outputs
final ResponseCodeInterpreterToolCall.Builder outputs(Optional<List<ResponseCodeInterpreterToolCall.Output>> outputs)
Alias for calling Builder.outputs with
outputs.orElse(null). 
- 
                                        
outputs
final ResponseCodeInterpreterToolCall.Builder outputs(JsonField<List<ResponseCodeInterpreterToolCall.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 ResponseCodeInterpreterToolCall.Builder addOutput(ResponseCodeInterpreterToolCall.Output output)
 
- 
                                        
addOutput
final ResponseCodeInterpreterToolCall.Builder addOutput(ResponseCodeInterpreterToolCall.Output.Logs logs)
Alias for calling addOutput with
Output.ofLogs(logs). 
- 
                                        
addOutput
final ResponseCodeInterpreterToolCall.Builder addOutput(ResponseCodeInterpreterToolCall.Output.Image image)
Alias for calling addOutput with
Output.ofImage(image). 
- 
                                        
addLogsOutput
final ResponseCodeInterpreterToolCall.Builder addLogsOutput(String logs)
Alias for calling addOutput with the following:
Output.Logs.builder() .logs(logs) .build() 
- 
                                        
addImageOutput
final ResponseCodeInterpreterToolCall.Builder addImageOutput(String url)
Alias for calling addOutput with the following:
Output.Image.builder() .url(url) .build() 
- 
                                        
status
final ResponseCodeInterpreterToolCall.Builder status(ResponseCodeInterpreterToolCall.Status status)
The status of the code interpreter tool call. Valid values are
in_progress,completed,incomplete,interpreting, andfailed. 
- 
                                        
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.
 
- 
                                        
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() .containerId() .outputs() .status() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -