Interface ToolCall
- All Known Implementing Classes:
ToolCall.CodeInterpreterToolCall
,ToolCall.FunctionToolCall
,ToolCall.RetrievalToolCall
public sealed interface ToolCall
permits ToolCall.CodeInterpreterToolCall, ToolCall.RetrievalToolCall, 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.FunctionToolCall
functionToolCall
(String id, ToolCall.FunctionToolCall.Function function) id()
static ToolCall.RetrievalToolCall
type()
-
Method Details
-
id
String id() -
type
String type() -
codeInterpreterToolCall
static ToolCall.CodeInterpreterToolCall codeInterpreterToolCall(String id, ToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) -
retrievalToolCall
-
functionToolCall
static ToolCall.FunctionToolCall functionToolCall(String id, ToolCall.FunctionToolCall.Function function)
-