Package com.openai.models.responses
Class ResponseCodeInterpreterToolCall.Result
-
- All Implemented Interfaces:
public final class ResponseCodeInterpreterToolCall.Result
The output of a code interpreter tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseCodeInterpreterToolCall.Result.Visitor
An interface that defines how to map each variant of Result to a value of type T.
public final class
ResponseCodeInterpreterToolCall.Result.Logs
The output of a code interpreter tool call that is text.
public final class
ResponseCodeInterpreterToolCall.Result.Files
The output of a code interpreter tool call that is a file.
-
Method Summary
-
-
Method Detail
-
logs
final Optional<ResponseCodeInterpreterToolCall.Result.Logs> logs()
The output of a code interpreter tool call that is text.
-
files
final Optional<ResponseCodeInterpreterToolCall.Result.Files> files()
The output of a code interpreter tool call that is a file.
-
asLogs
final ResponseCodeInterpreterToolCall.Result.Logs asLogs()
The output of a code interpreter tool call that is text.
-
asFiles
final ResponseCodeInterpreterToolCall.Result.Files asFiles()
The output of a code interpreter tool call that is a file.
-
accept
final <T extends Any> T accept(ResponseCodeInterpreterToolCall.Result.Visitor<T> visitor)
-
validate
final ResponseCodeInterpreterToolCall.Result validate()
-
ofLogs
final static ResponseCodeInterpreterToolCall.Result ofLogs(ResponseCodeInterpreterToolCall.Result.Logs logs)
The output of a code interpreter tool call that is text.
-
ofFiles
final static ResponseCodeInterpreterToolCall.Result ofFiles(ResponseCodeInterpreterToolCall.Result.Files files)
The output of a code interpreter tool call that is a file.
-
-
-
-