15 references to CreateFunctionJsonSchema
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (1)
711JsonSchema = AIJsonUtilities.CreateFunctionJsonSchema(
Utilities\AIJsonSchemaCreateOptions.cs (2)
29/// <see cref="AIJsonUtilities.CreateFunctionJsonSchema"/> in order to determine whether it should 41/// <see cref="AIJsonUtilities.CreateFunctionJsonSchema"/> to obtain a description for the parameter.
Microsoft.Extensions.AI.Abstractions.Tests (12)
Utilities\AIJsonUtilitiesTests.cs (12)
295JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty); 358JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty, description: string.Empty, inferenceOptions: inferenceOptions); 434JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method, title: string.Empty); 496JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method, title: string.Empty, serializerOptions: options); 557JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method); 576JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method, title: "override_title"); 1270JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1298JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1315JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1339JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1358JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1376JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new()