30 instantiations of ErrorContent
Microsoft.Extensions.AI.Abstractions (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ErrorContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ErrorContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (9)
Contents\AIContentTests.cs (1)
71new ErrorContent("error message"),
Contents\CodeInterpreterToolResultContentTests.cs (1)
55new ErrorContent("Warning: deprecated function")
Contents\ErrorContentTests.cs (3)
14ErrorContent content = new(null!); 33var errorContent = new ErrorContent(errorMessage) 49var errorContent = new ErrorContent("Error occurred")
Generated\361d1da7f942c932\TestJsonSerializerContext.ErrorContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ErrorContent((string)args[0]),
Realtime\RealtimeServerMessageTests.cs (3)
59var error = new ErrorContent("Test error") { Details = "temperature" }; 100var error = new ErrorContent("transcription error"); 197var error = new ErrorContent("response error");
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ErrorContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ErrorContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ErrorContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ErrorContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (11)
OpenAIChatClient.cs (2)
477responseUpdate.Contents.Add(new ErrorContent(refusal.ToString()) { ErrorCode = "Refusal" }); 550returnMessage.Contents.Add(new ErrorContent(refusal) { ErrorCode = nameof(openAICompletion.Refusal) });
OpenAIRealtimeClientSession.cs (4)
821Error = new ErrorContent(e.Error?.Message), 966msg.Error = new ErrorContent(error.Kind) 1065msg.Error = new ErrorContent(e.Error.Message) 1196? new ErrorContent(mcpItem.Error.Message)
OpenAIResponsesChatClient.cs (5)
165lastMessage.Contents.Add(new ErrorContent(error.Message) { ErrorCode = error.Code.ToString() }); 669yield return CreateUpdate(new ErrorContent(errorMessage) 677yield return CreateUpdate(new ErrorContent(refusalDone.Refusal) 1731content = new ErrorContent(part.Refusal) 1855new ErrorContent(mtci.Error.ToString()) :
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIConversionTests.cs (1)
1490var mcpToolResult = new McpServerToolResultContent("call_123") { Outputs = isError ? [new ErrorContent("error")] : [new TextContent("sunny")] };
OpenAIResponseClientTests.cs (1)
5579new ErrorContent("I cannot process this") { ErrorCode = "Refusal" }
Microsoft.Extensions.AI.Stabilization.Tests (2)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ErrorContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ErrorContent((string)args[0]),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolResultContentTests.cs (1)
55new ErrorContent("Warning: deprecated function")
Microsoft.Extensions.AI.Tests (3)
Generated\361d1da7f942c932\TestJsonSerializerContext.ErrorContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ErrorContent((string)args[0]),
Realtime\OpenTelemetryRealtimeClientTests.cs (2)
275Error = new ErrorContent("Something went wrong") { ErrorCode = "internal_error" }, 1057Error = new ErrorContent("Something went wrong on server"),
180 references to ErrorContent
Microsoft.Extensions.AI (2)
Common\OtelMessageSerializer.cs (1)
127case ErrorContent ec:
Realtime\OpenTelemetryRealtimeClientSession.cs (1)
591case ErrorContent ec:
Microsoft.Extensions.AI.Abstractions (29)
Contents\AIContent.cs (1)
12[JsonDerivedType(typeof(ErrorContent), typeDiscriminator: "error")]
Contents\ErrorContent.cs (2)
11/// Typically, <see cref="ErrorContent"/> is used for non-fatal errors, where something went wrong 17/// <summary>Initializes a new instance of the <see cref="ErrorContent"/> class with the specified error message.</summary>
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ErrorContent.g.cs (22)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>? _ErrorContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> ErrorContent 24get => _ErrorContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ErrorContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> Create_ErrorContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ErrorContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ErrorContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ErrorContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 81Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode, 82Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode = value!, 89AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("ErrorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 99DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 101Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details, 102Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details = value!, 109AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
192if (type == typeof(global::Microsoft.Extensions.AI.ErrorContent))
Realtime\ErrorRealtimeServerMessage.cs (1)
29public ErrorContent? Error { get; set; }
Realtime\InputAudioTranscriptionRealtimeServerMessage.cs (1)
57public ErrorContent? Error { get; set; }
Realtime\ResponseCreatedRealtimeServerMessage.cs (1)
114public ErrorContent? Error { get; set; }
Microsoft.Extensions.AI.Abstractions.Tests (34)
Contents\CodeInterpreterToolResultContentTests.cs (1)
64Assert.IsType<ErrorContent>(c.Outputs[3]);
Contents\ErrorContentTests.cs (7)
14ErrorContent content = new(null!); 33var errorContent = new ErrorContent(errorMessage) 49var errorContent = new ErrorContent("Error occurred") 58var deserializedErrorContent = JsonSerializer.Deserialize<ErrorContent>(json, options); 85var errorContent = Assert.IsType<ErrorContent>(result);
Generated\361d1da7f942c932\TestJsonSerializerContext.ErrorContent.g.cs (22)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>? _ErrorContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> ErrorContent 22get => _ErrorContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ErrorContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> Create_ErrorContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ErrorContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ErrorContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ErrorContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode, 81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("ErrorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 100Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
174if (type == typeof(global::Microsoft.Extensions.AI.ErrorContent))
Realtime\RealtimeServerMessageTests.cs (3)
59var error = new ErrorContent("Test error") { Details = "temperature" }; 100var error = new ErrorContent("transcription error"); 197var error = new ErrorContent("response error");
Microsoft.Extensions.AI.Evaluation.Reporting (23)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ErrorContent.g.cs (22)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>? _ErrorContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> ErrorContent 24get => _ErrorContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ErrorContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> Create_ErrorContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ErrorContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ErrorContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ErrorContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 80DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 82Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode, 83Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode = value!, 90AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("ErrorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 102Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details, 103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details = value!, 110AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
96if (type == typeof(global::Microsoft.Extensions.AI.ErrorContent))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (23)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ErrorContent.g.cs (22)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>? _ErrorContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> ErrorContent 24get => _ErrorContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ErrorContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> Create_ErrorContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ErrorContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ErrorContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ErrorContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 80DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 82Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode, 83Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode = value!, 90AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("ErrorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 102Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details, 103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details = value!, 110AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
96if (type == typeof(global::Microsoft.Extensions.AI.ErrorContent))
Microsoft.Extensions.AI.OpenAI (4)
OpenAIChatClient.cs (1)
213case ErrorContent ec when ec.ErrorCode == nameof(AssistantChatMessage.Refusal):
OpenAIResponsesChatClient.cs (3)
1375case ErrorContent errorContent when errorContent.ErrorCode == nameof(ResponseContentPartKind.Refusal): 1607if (mstrc.Outputs?.OfType<ErrorContent>().FirstOrDefault() is ErrorContent errorContent)
Microsoft.Extensions.AI.OpenAI.Tests (18)
OpenAIResponseClientTests.cs (18)
2639var errorContent = Assert.IsType<ErrorContent>(Assert.Single(toolResult.Outputs!)); 5474var errorContent = lastMessage.Contents.OfType<ErrorContent>().FirstOrDefault(); 5800var refusalUpdate = updates.FirstOrDefault(u => u.Contents.Any(c => c is ErrorContent ec && ec.ErrorCode == "Refusal")); 5803var errorContent = refusalUpdate.Contents.OfType<ErrorContent>().First(); 5858var errorUpdate = updates.FirstOrDefault(u => u.Contents.Any(c => c is ErrorContent)); 5861var errorContent = errorUpdate.Contents.OfType<ErrorContent>().First(); 5901var errorUpdate = updates.FirstOrDefault(u => u.Contents.Any(c => c is ErrorContent)); 5904var errorContent = errorUpdate.Contents.OfType<ErrorContent>().First(); 5944var errorUpdate = updates.FirstOrDefault(u => u.Contents.Any(c => c is ErrorContent)); 5947var errorContent = errorUpdate.Contents.OfType<ErrorContent>().First(); 6172var errorContent = response.Messages.Last().Contents.OfType<ErrorContent>().FirstOrDefault();
Microsoft.Extensions.AI.Stabilization.Tests (24)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ErrorContent.g.cs (22)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>? _ErrorContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> ErrorContent 22get => _ErrorContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ErrorContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> Create_ErrorContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ErrorContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ErrorContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ErrorContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode, 81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("ErrorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 100Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
62if (type == typeof(global::Microsoft.Extensions.AI.ErrorContent))
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolResultContentTests.cs (1)
64Assert.IsType<ErrorContent>(c.Outputs[3]);
Microsoft.Extensions.AI.Tests (23)
Generated\361d1da7f942c932\TestJsonSerializerContext.ErrorContent.g.cs (22)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>? _ErrorContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> ErrorContent 22get => _ErrorContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ErrorContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> Create_ErrorContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ErrorContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ErrorContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ErrorContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ErrorContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Message = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode, 81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).ErrorCode = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("ErrorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.ErrorContent), 100Getter = static obj => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ErrorContent)obj).Details = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ErrorContent).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
138if (type == typeof(global::Microsoft.Extensions.AI.ErrorContent))