9 references to CreateJsonSchema
Microsoft.Extensions.AI (2)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
125
var schemaElement = AIJsonUtilities.
CreateJsonSchema
(
Functions\AIFunctionFactory.cs (1)
276
Schema = AIJsonUtilities.
CreateJsonSchema
(returnType, serializerOptions: options.SerializerOptions, inferenceOptions: options.SchemaCreateOptions),
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaCreateContext.cs (1)
19
/// callback by the <see cref="AIJsonUtilities.
CreateJsonSchema
"/> method and cannot be instantiated directly.
Microsoft.Extensions.AI.Abstractions.Tests (6)
Utilities\AIJsonUtilitiesTests.cs (6)
77
JsonElement actual = AIJsonUtilities.
CreateJsonSchema
(typeof(MyPoco), serializerOptions: JsonSerializerOptions.Default);
116
JsonElement actual = AIJsonUtilities.
CreateJsonSchema
(
167
JsonElement actual = AIJsonUtilities.
CreateJsonSchema
(typeof(MyPoco), serializerOptions: JsonSerializerOptions.Default, inferenceOptions: inferenceOptions);
195
JsonElement actual = AIJsonUtilities.
CreateJsonSchema
(typeof(PocoWithTypesWithOpenAIUnsupportedKeywords), serializerOptions: JsonSerializerOptions.Default);
260
JsonElement schema = AIJsonUtilities.
CreateJsonSchema
(typeof(object));
279
JsonElement schema = AIJsonUtilities.
CreateJsonSchema
(testData.Type, serializerOptions: options, inferenceOptions: createOptions);