3 references to ForJsonSchema
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
163
options.ResponseFormat = ChatResponseFormat.
ForJsonSchema
(
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatResponseFormatTests.cs (2)
103
string json = JsonSerializer.Serialize(ChatResponseFormat.
ForJsonSchema
("[1,2,3]", "name", "description"), TestJsonSerializerContext.Default.ChatResponseFormat);
107
Assert.Equal(ChatResponseFormat.
ForJsonSchema
("[1,2,3]", "name", "description"), result);