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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
-
Method Summary
Modifier and TypeMethodDescriptioncodeInterpreterToolCall
(String id, ToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) static ToolCall.FileSearchToolCall
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
-
functionToolCall
static ToolCall.FunctionToolCall functionToolCall(String id, ToolCall.FunctionToolCall.Function function)
-