5 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)
476
/// can also be created from an invocable <see cref="AIFunction"/> using that function's <see cref="AIFunction.
AsDeclarationOnly
"/> method.
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
1141
var declarationOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").
AsDeclarationOnly
();
1167
var defOnly = AIFunctionFactory.Create(() => "unused", "DefOnly").
AsDeclarationOnly
();
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
137
AIFunctionFactory.Create((string location) => "", "GetCurrentWeather", "Gets the current weather for a location.").
AsDeclarationOnly
(),