13 references to CreateFunctionJsonSchema
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (1)
741JsonSchema = 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 (10)
Utilities\AIJsonUtilitiesTests.cs (10)
295JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty); 358JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty, description: string.Empty, inferenceOptions: inferenceOptions); 441JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method); 460JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method, title: "override_title"); 1154JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1182JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1199JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1223JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1242JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1260JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new()