DelegatingAIFunction Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an optional base class for an AIFunction that passes through calls to another instance.
public ref class DelegatingAIFunction : Microsoft::Extensions::AI::AIFunction
public class DelegatingAIFunction : Microsoft.Extensions.AI.AIFunction
type DelegatingAIFunction = class
inherit AIFunction
Public Class DelegatingAIFunction
Inherits AIFunction
- Inheritance
- Derived
Constructors
| DelegatingAIFunction(AIFunction) |
Initializes a new instance of the DelegatingAIFunction class as a wrapper around |
Properties
| AdditionalProperties |
Gets any additional properties associated with the tool. |
| Description |
Gets a description of the tool, suitable for use in describing the purpose to a model. |
| InnerFunction |
Gets the inner AIFunction. |
| JsonSchema |
Gets a JSON Schema describing the function and its input parameters. |
| JsonSerializerOptions |
Gets a JsonSerializerOptions that can be used to marshal function parameters. |
| Name |
Gets the name of the tool. |
| ReturnJsonSchema |
Gets a JSON Schema describing the function's return value. |
| UnderlyingMethod |
Gets the underlying MethodInfo that this AIFunction might be wrapping. |
Methods
| AsDeclarationOnly() |
Creates a AIFunctionDeclaration representation of this AIFunction that can't be invoked. (Inherited from AIFunction) |
| GetService(Type, Object) |
Asks the AITool for an object of the specified type |
| GetService<TService>(Object) |
Asks the AITool for an object of type |
| InvokeAsync(AIFunctionArguments, CancellationToken) |
Invokes the AIFunction and returns its result. (Inherited from AIFunction) |
| InvokeCoreAsync(AIFunctionArguments, CancellationToken) |
Invokes the AIFunction and returns its result. |
| ToString() |
Returns a string that represents the current object. |
Extension Methods
| AsOpenAIAssistantsFunctionToolDefinition(AIFunctionDeclaration) |
Creates an OpenAI FunctionToolDefinition from an AIFunctionDeclaration. |
| AsOpenAIChatTool(AIFunctionDeclaration) |
Creates an OpenAI ChatTool from an AIFunctionDeclaration. |
| AsOpenAIConversationFunctionTool(AIFunctionDeclaration) |
Creates an OpenAI ConversationFunctionTool from an AIFunctionDeclaration. |
| AsOpenAIResponseTool(AIFunctionDeclaration) |
Creates an OpenAI ResponseTool from an AIFunctionDeclaration. |