67 instantiations of ToolApprovalResponseContent
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (13)
Contents\AIContentTests.cs (2)
78new ToolApprovalResponseContent("request123", approved: true, new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
82new ToolApprovalResponseContent("request123", approved: true, new McpServerToolCallContent("call456", "myTool2", "myServer2")),
Contents\ToolApprovalResponseContentTests.cs (8)
16Assert.Throws<ArgumentNullException>("requestId", () => new ToolApprovalResponseContent(null!, true, new FunctionCallContent("FCC1", "TestFunction")));
17Assert.Throws<ArgumentException>("requestId", () => new ToolApprovalResponseContent("", true, new FunctionCallContent("FCC1", "TestFunction")));
18Assert.Throws<ArgumentException>("requestId", () => new ToolApprovalResponseContent("\r\t\n ", true, new FunctionCallContent("FCC1", "TestFunction")));
19Assert.Throws<ArgumentNullException>("toolCall", () => new ToolApprovalResponseContent("id", true, null!));
34ToolApprovalResponseContent content = new("req-1", true, toolCall);
40content = new("req-2", false, toolCall);
51var content = new ToolApprovalResponseContent("request123", true, toolCall)
82var content = new ToolApprovalResponseContent("request123", true, new FunctionCallContent("call123", "functionName"))
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Stabilization.Tests (1)
Microsoft.Extensions.AI.Tests (45)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (41)
264new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
265new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
316new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
317new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
371new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
375new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
427new ToolApprovalResponseContent("ficc_callId1", false, new FunctionCallContent("callId1", "Func1")),
428new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
486new ToolApprovalResponseContent("ficc_callId1", false, new FunctionCallContent("callId1", "Func1")),
487new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
550new ToolApprovalResponseContent("ficc_callId1", false, new FunctionCallContent("callId1", "Func1"))
554new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
617new ToolApprovalResponseContent("ficc_callId1", false, new FunctionCallContent("callId1", "Func1")) { Reason = "Custom rejection for Func1" },
618new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })),
619new ToolApprovalResponseContent("ficc_callId3", true, new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }))
707new ToolApprovalResponseContent("ficc_callId1", false, new FunctionCallContent("callId1", "Func1"))
766new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
767new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
820new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
821new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
831new ToolApprovalResponseContent("ficc_callId3", true, new FunctionCallContent("callId3", "Func1")),
898new ToolApprovalResponseContent("ficc_callId1", false, responseFcc),
970new ToolApprovalResponseContent("ficc_callId1", false, response1Fcc),
978new ToolApprovalResponseContent("ficc_callId2", false, request2Fcc),
1116new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1117new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
1162new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1163new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
1206new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1256new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1306new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1361new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1419new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func1")),
1692new ToolApprovalResponseContent("approval-request-id", true, new FunctionCallContent("function-call-id", "Func1"))
1787new ToolApprovalResponseContent("ficc_callId1", true, new FunctionCallContent("callId1", "Func")),
1788new ToolApprovalResponseContent("callId2", true, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1809new ToolApprovalResponseContent("callId2", true, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1871new ToolApprovalResponseContent("ficc_callId1", approveFuncCall, new FunctionCallContent("callId1", "Func")),
1872new ToolApprovalResponseContent("callId2", approveMcpCall, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1894new ToolApprovalResponseContent("callId2", approveMcpCall, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
2108new ToolApprovalResponseContent(tarc.RequestId, tarc.Approved, (ToolCallContent)CloneFcc(tarc.ToolCall))
188 references to ToolApprovalResponseContent
Microsoft.AspNetCore.Components.AI (1)
Microsoft.Extensions.AI (15)
Microsoft.Extensions.AI.Abstractions (28)
Generated\361d1da7f942c932\JsonContext.ToolApprovalResponseContent.g.cs (20)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>? _ToolApprovalResponseContent;
21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> ToolApprovalResponseContent
24get => _ToolApprovalResponseContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent));
27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> Create_ToolApprovalResponseContent(global::System.Text.Json.JsonSerializerOptions options)
29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> jsonTypeInfo))
31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null),
41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, objectInfo);
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Approved,
68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Approved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).ToolCall,
88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null),
99DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
101Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason,
102Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason = value!,
109AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Abstractions.Tests (39)
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolApprovalResponseContent.g.cs (20)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>? _ToolApprovalResponseContent;
19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> ToolApprovalResponseContent
22get => _ToolApprovalResponseContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent));
25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> Create_ToolApprovalResponseContent(global::System.Text.Json.JsonSerializerOptions options)
27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> jsonTypeInfo))
29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null),
39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, objectInfo);
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Approved,
66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Approved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).ToolCall,
86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null),
97DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
99Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason,
100Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason = value!,
107AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Evaluation.Reporting (21)
Generated\361d1da7f942c932\JsonContext.ToolApprovalResponseContent.g.cs (20)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>? _ToolApprovalResponseContent;
21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> ToolApprovalResponseContent
24get => _ToolApprovalResponseContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent));
27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> Create_ToolApprovalResponseContent(global::System.Text.Json.JsonSerializerOptions options)
29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> jsonTypeInfo))
31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null),
41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, objectInfo);
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Approved,
68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Approved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).ToolCall,
88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null),
99DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
101Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason,
102Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason = value!,
109AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (21)
Generated\361d1da7f942c932\JsonContext.ToolApprovalResponseContent.g.cs (20)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>? _ToolApprovalResponseContent;
21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> ToolApprovalResponseContent
24get => _ToolApprovalResponseContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent));
27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> Create_ToolApprovalResponseContent(global::System.Text.Json.JsonSerializerOptions options)
29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> jsonTypeInfo))
31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null),
41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, objectInfo);
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Approved,
68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Approved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).ToolCall,
88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null),
99DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
101Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason,
102Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason = value!,
109AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.OpenAI (3)
Microsoft.Extensions.AI.OpenAI.Tests (13)
Microsoft.Extensions.AI.Stabilization.Tests (21)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolApprovalResponseContent.g.cs (20)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>? _ToolApprovalResponseContent;
19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> ToolApprovalResponseContent
22get => _ToolApprovalResponseContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent));
25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> Create_ToolApprovalResponseContent(global::System.Text.Json.JsonSerializerOptions options)
27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> jsonTypeInfo))
29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null),
39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, objectInfo);
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Approved,
66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Approved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).ToolCall,
86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null),
97DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
99Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason,
100Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason = value!,
107AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Tests (26)
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolApprovalResponseContent.g.cs (20)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>? _ToolApprovalResponseContent;
19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> ToolApprovalResponseContent
22get => _ToolApprovalResponseContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent));
25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> Create_ToolApprovalResponseContent(global::System.Text.Json.JsonSerializerOptions options)
27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent> jsonTypeInfo))
29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null),
39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolApprovalResponseContent>(options, objectInfo);
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Approved,
66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Approved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).ToolCall,
86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null),
97DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent),
99Getter = static obj => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason,
100Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ToolApprovalResponseContent)obj).Reason = value!,
107AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalResponseContent).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),