GenericFunctionTool Constructor

Represents a generic functional tool that enables interaction with a set of tools and their associated functions, facilitating the conversion of provided tools into a compatible format for execution and integration.

Definition

Namespace: GenerativeAI.Tools
Assembly: GenerativeAI.Tools (in GenerativeAI.Tools.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public GenericFunctionTool(
	IEnumerable<Tool> tools,
	IReadOnlyDictionary<string, Func<string, CancellationToken, Task<string>>> calls
)

Parameters

tools  IEnumerableTool

[Missing <param name="tools"/> documentation for "M:GenerativeAI.Tools.GenericFunctionTool.#ctor(System.Collections.Generic.IEnumerable{CSharpToJsonSchema.Tool},System.Collections.Generic.IReadOnlyDictionary{System.String,System.Func{System.String,System.Threading.CancellationToken,System.Threading.Tasks.Task{System.String}}})"]

calls  IReadOnlyDictionaryString, FuncString, CancellationToken, TaskString

[Missing <param name="calls"/> documentation for "M:GenerativeAI.Tools.GenericFunctionTool.#ctor(System.Collections.Generic.IEnumerable{CSharpToJsonSchema.Tool},System.Collections.Generic.IReadOnlyDictionary{System.String,System.Func{System.String,System.Threading.CancellationToken,System.Threading.Tasks.Task{System.String}}})"]

See Also