8 references to AsDeclarationOnly
Microsoft.AspNetCore.Components.AI (1)
Engine\UIAgent.cs (1)
178
tools.Add(action.
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)
508
/// can also be created from an invocable <see cref="AIFunction"/> using that function's <see cref="AIFunction.
AsDeclarationOnly
"/> method.
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
1573
var declarationOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").
AsDeclarationOnly
();
1599
var defOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").
AsDeclarationOnly
();
3279
var declarationOnly = AIFunctionFactory.Create(() => "Result 1", "Func1").
AsDeclarationOnly
();
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
147
AIFunctionFactory.Create((string location) => "", "GetCurrentWeather", "Gets the current weather for a location.").
AsDeclarationOnly
(),
Functions\AIFunctionFactoryTest.cs (1)
344
AIFunctionDeclaration declaration = func.
AsDeclarationOnly
();