Interface Tool
- All Known Implementing Classes:
Tool.CodeInterpreterTool
,Tool.FileSearchTool
,Tool.FunctionTool
public sealed interface Tool
permits Tool.CodeInterpreterTool, Tool.FileSearchTool, Tool.FunctionTool
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tool.CodeInterpreterTool
static Tool.FileSearchTool
static Tool.FileSearchTool
fileSearchTool
(int maxNumResults) static Tool.FileSearchTool
fileSearchTool
(int maxNumResults, Tool.FileSearchTool.FileSearch.RankingOptions rankingOptions) static Tool.FunctionTool
functionTool
(Function function) type()
-
Method Details
-
type
String type() -
codeInterpreterTool
-
fileSearchTool
-
fileSearchTool
- Parameters:
maxNumResults
- The maximum number of results the file search tool should output.
-
fileSearchTool
static Tool.FileSearchTool fileSearchTool(int maxNumResults, Tool.FileSearchTool.FileSearch.RankingOptions rankingOptions) - Parameters:
maxNumResults
- The maximum number of results the file search tool should output.rankingOptions
- The score threshold for the file search. All values must be a floating point number between 0 and 1.
-
functionTool
-