4 references to AsDeclarationOnly
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunction.cs (1)
53/// to describing it. <see cref="AsDeclarationOnly"/> creates a new object that describes the function but that can't be invoked.
Functions\AIFunctionFactory.cs (1)
480/// can also be created from an invocable <see cref="AIFunction"/> using that function's <see cref="AIFunction.AsDeclarationOnly"/> method.
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
1123var declarationOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").AsDeclarationOnly(); 1149var defOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").AsDeclarationOnly();