AIFunction.AsDeclarationOnly Method
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.
Creates a AIFunctionDeclaration representation of this AIFunction that can't be invoked.
public:
Microsoft::Extensions::AI::AIFunctionDeclaration ^ AsDeclarationOnly();
public Microsoft.Extensions.AI.AIFunctionDeclaration AsDeclarationOnly();
member this.AsDeclarationOnly : unit -> Microsoft.Extensions.AI.AIFunctionDeclaration
Public Function AsDeclarationOnly () As AIFunctionDeclaration
Returns
The created instance.
Remarks
AIFunction derives from AIFunctionDeclaration, layering on the ability to invoke the function in addition to describing it. AsDeclarationOnly() creates a new object that describes the function but that can't be invoked.