Package com.openai.models
Class ToolCall
-
- All Implemented Interfaces:
public final class ToolCallDetails of the Code Interpreter tool call the run step was involved in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceToolCall.Visitor
-
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 BooleanisCodeInterpreter()final BooleanisFileSearch()final BooleanisFunction()final CodeInterpreterToolCallasCodeInterpreter()Details of the Code Interpreter tool call the run step was involved in. final FileSearchToolCallasFileSearch()final FunctionToolCallasFunction()final Optional<JsonValue>_json()final <T extends Any> Taccept(ToolCall.Visitor<T> visitor)final ToolCallvalidate()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolCallofCodeInterpreter(CodeInterpreterToolCall codeInterpreter)Details of the Code Interpreter tool call the run step was involved in. final static ToolCallofFileSearch(FileSearchToolCall fileSearch)final static ToolCallofFunction(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)
-
-
-
-