Interface ToolCall
- All Known Implementing Classes:
ToolCall.CodeInterpreterToolCall
,ToolCall.FileSearchToolCall
,ToolCall.FunctionToolCall
public sealed interface ToolCall
permits ToolCall.CodeInterpreterToolCall, ToolCall.FileSearchToolCall, ToolCall.FunctionToolCall
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
-
Method Summary
Modifier and TypeMethodDescriptioncodeInterpreterToolCall
(String id, ToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) static ToolCall.FileSearchToolCall
fileSearchToolCall
(String id, ToolCall.FileSearchToolCall.FileSearch fileSearch) static ToolCall.FunctionToolCall
functionToolCall
(String id, ToolCall.FunctionToolCall.Function function) id()
The ID of the tool call.type()
The type of tool call
-
Method Details
-
id
String id()The ID of the tool call. -
type
String type()The type of tool call -
codeInterpreterToolCall
static ToolCall.CodeInterpreterToolCall codeInterpreterToolCall(String id, ToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) -
fileSearchToolCall
static ToolCall.FileSearchToolCall fileSearchToolCall(String id, ToolCall.FileSearchToolCall.FileSearch fileSearch) -
functionToolCall
static ToolCall.FunctionToolCall functionToolCall(String id, ToolCall.FunctionToolCall.Function function)
-