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 recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptioncodeInterpreterToolCall(String id, ToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) static ToolCall.FunctionToolCallfunctionToolCall(String id, ToolCall.FunctionToolCall.Function function) id()static ToolCall.RetrievalToolCalltype()
-
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)
-