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