1 write to Schema
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseFormatJson.cs (1)
31Schema = schema;
12 references to Schema
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
280ChatResponseFormatJson { Schema: null } => "json_schema",
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\ChatResponseFormatJson.cs (4)
48Schema == other.Schema && 54Schema?.GetHashCode(StringComparison.Ordinal) ?? 59private string DebuggerDisplay => Schema ?? "JSON";
Microsoft.Extensions.AI.Abstractions.Tests (3)
ChatCompletion\ChatResponseFormatTests.cs (3)
31Assert.Null(f.Schema); 40Assert.Equal("{}", f.Schema); 108Assert.Equal("[1,2,3]", (result as ChatResponseFormatJson)?.Schema);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
481result.ResponseFormat = jsonFormat.Schema is string jsonSchema ?
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (3)
34Assert.Null(responseFormat.Schema); 180Assert.Contains("https://json-schema.org/draft/2020-12/schema", responseFormat.Schema); 183Assert.Contains(v.ToString(), responseFormat.Schema); // All enum values are described as strings