Table of Contents

Class ToolWrapperExtensions

public static class ToolWrapperExtensions
Inheritance
object
ToolWrapperExtensions

Methods

GetFunctions(List<ToolWrapper>)

public static List<Function> GetFunctions(this List<ToolWrapper> toolRequests)

Parameters

toolRequests List<ToolWrapper>

Returns

List<Function>

IsCodeInterpreter(ToolWrapper)

public static bool IsCodeInterpreter(this ToolWrapper toolRequest)

Parameters

toolRequest ToolWrapper

Returns

bool

IsCustom(ToolWrapper)

public static bool IsCustom(this ToolWrapper toolRequest)

Parameters

toolRequest ToolWrapper

Returns

bool

IsFileSearch(ToolWrapper)

public static bool IsFileSearch(this ToolWrapper toolRequest)

Parameters

toolRequest ToolWrapper

Returns

bool

IsFunction(ToolWrapper)

public static bool IsFunction(this ToolWrapper toolRequest)

Parameters

toolRequest ToolWrapper

Returns

bool

UnwrapTools(IEnumerable<ToolWrapper>)

public static List<Tool> UnwrapTools(this IEnumerable<ToolWrapper> toolRequests)

Parameters

toolRequests IEnumerable<ToolWrapper>

Returns

List<Tool>

WrapTools(List<Tool>)

public static ToolWrapper[] WrapTools(this List<Tool> tools)

Parameters

tools List<Tool>

Returns

ToolWrapper[]