Class ToolWrapperExtensions
public static class ToolWrapperExtensions
- Inheritance
-
object
ToolWrapperExtensions
Methods
public static List<Function> GetFunctions(this List<ToolWrapper> toolRequests)
Parameters
toolRequests List<ToolWrapper>
Returns
- List<Function>
public static bool IsCodeInterpreter(this ToolWrapper toolRequest)
Parameters
toolRequest ToolWrapper
Returns
- bool
public static bool IsCustom(this ToolWrapper toolRequest)
Parameters
toolRequest ToolWrapper
Returns
- bool
public static bool IsFileSearch(this ToolWrapper toolRequest)
Parameters
toolRequest ToolWrapper
Returns
- bool
public static bool IsFunction(this ToolWrapper toolRequest)
Parameters
toolRequest ToolWrapper
Returns
- bool
public static List<Tool> UnwrapTools(this IEnumerable<ToolWrapper> toolRequests)
Parameters
toolRequests IEnumerable<ToolWrapper>
Returns
- List<Tool>
public static ToolWrapper[] WrapTools(this List<Tool> tools)
Parameters
tools List<Tool>
Returns
- ToolWrapper[]