Table of Contents

Class ToolWrapper

public class ToolWrapper
Inheritance
object
ToolWrapper
Extension Methods

Properties

CodeInterpreterTool

For Assistants API. Only available when type is "code_interpreter".

public CodeInterpreter CodeInterpreterTool { get; set; }

Property Value

CodeInterpreter

CustomTool

Only available when type is "custom".

public CustomTool CustomTool { get; set; }

Property Value

CustomTool

FileSearchTool

For Assistants API. Only available when type is "file_search".

public FileSearch FileSearchTool { get; set; }

Property Value

FileSearch

FunctionTool

Only available when type is "function".

public Function FunctionTool { get; set; }

Property Value

Function

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

codeInterpreter CodeInterpreter

Returns

ToolWrapper

Custom(CustomTool)

public static ToolWrapper Custom(CustomTool custom)

Parameters

custom CustomTool

Returns

ToolWrapper

FileSearch(FileSearch)

public static ToolWrapper FileSearch(FileSearch fileSearch = null)

Parameters

fileSearch FileSearch

Returns

ToolWrapper

FromTools(List<Tool>)

public static List<ToolWrapper> FromTools(List<Tool> tools)

Parameters

tools List<Tool>

Returns

List<ToolWrapper>

Function(Function)

public static ToolWrapper Function(Function function)

Parameters

function Function

Returns

ToolWrapper