Package com.openai.models
Class ToolCall
-
- All Implemented Interfaces:
public final class ToolCall
Details of the Code Interpreter tool call the run step was involved in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ToolCall.Visitor
An interface that defines how to map each variant of ToolCall to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<CodeInterpreterToolCall>
codeInterpreter()
Details of the Code Interpreter tool call the run step was involved in. final Optional<FileSearchToolCall>
fileSearch()
final Optional<FunctionToolCall>
function()
final Boolean
isCodeInterpreter()
final Boolean
isFileSearch()
final Boolean
isFunction()
final CodeInterpreterToolCall
asCodeInterpreter()
Details of the Code Interpreter tool call the run step was involved in. final FileSearchToolCall
asFileSearch()
final FunctionToolCall
asFunction()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ToolCall.Visitor<T> visitor)
final ToolCall
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ToolCall
ofCodeInterpreter(CodeInterpreterToolCall codeInterpreter)
Details of the Code Interpreter tool call the run step was involved in. final static ToolCall
ofFileSearch(FileSearchToolCall fileSearch)
final static ToolCall
ofFunction(FunctionToolCall function)
-
-
Method Detail
-
codeInterpreter
final Optional<CodeInterpreterToolCall> codeInterpreter()
Details of the Code Interpreter tool call the run step was involved in.
-
fileSearch
final Optional<FileSearchToolCall> fileSearch()
-
function
final Optional<FunctionToolCall> function()
-
isCodeInterpreter
final Boolean isCodeInterpreter()
-
isFileSearch
final Boolean isFileSearch()
-
isFunction
final Boolean isFunction()
-
asCodeInterpreter
final CodeInterpreterToolCall asCodeInterpreter()
Details of the Code Interpreter tool call the run step was involved in.
-
asFileSearch
final FileSearchToolCall asFileSearch()
-
asFunction
final FunctionToolCall asFunction()
-
accept
final <T extends Any> T accept(ToolCall.Visitor<T> visitor)
-
ofCodeInterpreter
final static ToolCall ofCodeInterpreter(CodeInterpreterToolCall codeInterpreter)
Details of the Code Interpreter tool call the run step was involved in.
-
ofFileSearch
final static ToolCall ofFileSearch(FileSearchToolCall fileSearch)
-
ofFunction
final static ToolCall ofFunction(FunctionToolCall function)
-
-
-
-