6 references to AsDeclarationOnly
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunction.cs (1)
51
/// to describing it. <see cref="
AsDeclarationOnly
"/> creates a new object that describes the function but that can't be invoked.
Functions\AIFunctionFactory.cs (1)
459
/// can also be created from an invocable <see cref="AIFunction"/> using that function's <see cref="AIFunction.
AsDeclarationOnly
"/> method.
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
1573
var declarationOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").
AsDeclarationOnly
();
1599
var defOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").
AsDeclarationOnly
();
3268
var declarationOnly = AIFunctionFactory.Create(() => "Result 1", "Func1").
AsDeclarationOnly
();
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
143
AIFunctionFactory.Create((string location) => "", "GetCurrentWeather", "Gets the current weather for a location.").
AsDeclarationOnly
(),