Class ToolWrapper
- Namespace
- Glitch9.AIDevKit.ChatCompletions
public class ToolWrapper
- Inheritance
-
objectToolWrapper
- Extension Methods
Properties
CodeInterpreterTool
For Assistants API. Only available when type is "code_interpreter".
public CodeInterpreter CodeInterpreterTool { get; set; }
Property Value
CustomTool
Only available when type is "custom".
public CustomTool CustomTool { get; set; }
Property Value
FileSearchTool
For Assistants API. Only available when type is "file_search".
public FileSearch FileSearchTool { get; set; }
Property Value
FunctionTool
Only available when type is "function".
public Function FunctionTool { get; set; }
Property Value
Type
The type of the tool.
public string Type { get; set; }
Property Value
- string
Methods
CodeInterpreter(CodeInterpreter)
public static ToolWrapper CodeInterpreter(CodeInterpreter codeInterpreter = null)
Parameters
codeInterpreterCodeInterpreter
Returns
Custom(CustomTool)
public static ToolWrapper Custom(CustomTool custom)
Parameters
customCustomTool
Returns
FileSearch(FileSearch)
public static ToolWrapper FileSearch(FileSearch fileSearch = null)
Parameters
fileSearchFileSearch
Returns
FromTools(List<Tool>)
public static List<ToolWrapper> FromTools(List<Tool> tools)
Parameters
toolsList<Tool>
Returns
- List<ToolWrapper>
Function(Function)
public static ToolWrapper Function(Function function)
Parameters
functionFunction