Class ToolEnvelopeExtensions
Inherited Members
Namespace: Glitch9.AIDevKit.OpenAI
Assembly: Glitch9.AIDevKit.dll
Syntax
public static class ToolEnvelopeExtensions
Methods
| Edit this page View SourceIsFunction(ToolEnvelope)
Declaration
public static bool IsFunction(this ToolEnvelope toolEnvelope)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolEnvelope | toolEnvelope |
Returns
| Type | Description |
|---|---|
| bool |
WrapTools(IEnumerable<Tool>, bool)
Declaration
public static ToolEnvelope[] WrapTools(this IEnumerable<Tool> tools, bool onlyFunctions = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Tool> | tools | |
| bool | onlyFunctions |
Returns
| Type | Description |
|---|---|
| ToolEnvelope[] |