6 types derived from ToolCallContent
Microsoft.Extensions.AI.Abstractions (5)
Contents\CodeInterpreterToolCallContent.cs (1)
15public sealed class CodeInterpreterToolCallContent : ToolCallContent
Contents\FunctionCallContent.cs (1)
17public class FunctionCallContent : ToolCallContent
Contents\ImageGenerationToolCallContent.cs (1)
9public sealed class ImageGenerationToolCallContent : ToolCallContent
Contents\McpServerToolCallContent.cs (1)
20public sealed class McpServerToolCallContent : ToolCallContent
Contents\WebSearchToolCallContent.cs (1)
15public sealed class WebSearchToolCallContent : ToolCallContent
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
1925private class DerivedToolCallContent : ToolCallContent
14 instantiations of ToolCallContent
Microsoft.Extensions.AI.Abstractions (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\ToolCallContentTests.cs (3)
16ToolCallContent c = new("callId1"); 26Assert.Throws<ArgumentNullException>("callId", () => new ToolCallContent(null!)); 32ToolCallContent c = new("callId1");
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolCallContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (5)
OpenAIResponsesChatClient.cs (5)
292message.Contents.Add(new ToolCallContent(outputItem.Id)); 297message.Contents.Add(new ToolCallContent(computerCall.CallId) { RawRepresentation = computerCall }); 305message.Contents.Add(new ToolCallContent(patchCall.CallId) { RawRepresentation = patchCall }); 620var toolCallUpdate = CreateUpdate(new ToolCallContent(outputItemDoneUpdate.Item.Id)); 626yield return CreateUpdate(new ToolCallContent(computerCall.CallId) { RawRepresentation = outputItemDoneUpdate.Item });
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolCallContent((string)args[0]),
314 references to ToolCallContent
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
921/// if there is a matching <see cref="FunctionResultContent"/> with the same <see cref="ToolCallContent.CallId"/> in the same set of messages, 964/// if there is a matching <see cref="FunctionResultContent"/> with the same <see cref="ToolCallContent.CallId"/>, regardless of order.
Microsoft.Extensions.AI.Abstractions (49)
Contents\AIContent.cs (1)
21[JsonDerivedType(typeof(ToolCallContent), typeDiscriminator: "toolCall")]
Contents\ToolApprovalRequestContent.cs (2)
26public ToolApprovalRequestContent(string requestId, ToolCallContent toolCall) 35public ToolCallContent ToolCall { get; }
Contents\ToolApprovalResponseContent.cs (2)
25public ToolApprovalResponseContent(string requestId, bool approved, ToolCallContent toolCall) 40public ToolCallContent ToolCall { get; }
Contents\ToolCallContent.cs (1)
21/// Initializes a new instance of the <see cref="ToolCallContent"/> class.
Contents\ToolResultContent.cs (2)
34/// If this is the result for a <see cref="ToolCallContent"/>, this property should contain the same 35/// <see cref="ToolCallContent.CallId"/> value.
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (3)
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ToolApprovalRequestContent.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalRequestContent((string)args[0], (global::Microsoft.Extensions.AI.ToolCallContent)args[1]), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info0); 213ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\JsonContext.ToolApprovalResponseContent.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalResponseContent((string)args[0], (bool)args[1], (global::Microsoft.Extensions.AI.ToolCallContent)args[2]), 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), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 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), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info1); 223ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.FunctionCallContent.g.cs (3)
139DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 141Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 149AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", 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)
352if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.McpServerToolCallContent.g.cs (3)
119DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 121Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 129AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolCallContent.g.cs (13)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>? _ToolCallContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> ToolCallContent 24get => _ToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> Create_ToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.WebSearchToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Abstractions.Tests (76)
AssertExtensions.cs (2)
75private static void AssertToolCallNameAndArguments(ToolCallContent expected, ToolCallContent actual)
Contents\FunctionCallContentTests.cs (1)
418AssertSerializationRoundtrips<ToolCallContent>(content);
Contents\McpServerToolCallContentTests.cs (1)
71AssertSerializationRoundtrips<ToolCallContent>(content);
Contents\ToolApprovalRequestContentTests.cs (4)
22public static TheoryData<ToolCallContent> ToolCallContentInstances => new() 32public void Constructor_Roundtrips(ToolCallContent toolCall) 43public void CreateResponse_ReturnsExpectedResponse(ToolCallContent toolCall) 80public void Serialization_Roundtrips(ToolCallContent toolCall)
Contents\ToolApprovalResponseContentTests.cs (3)
22public static TheoryData<ToolCallContent> ToolCallContentInstances => new() 32public void Constructor_Roundtrips(ToolCallContent toolCall) 49public void Serialization_Roundtrips(ToolCallContent toolCall)
Contents\ToolCallContentTests.cs (6)
16ToolCallContent c = new("callId1"); 32ToolCallContent c = new("callId1"); 67var deserialized = JsonSerializer.Deserialize<ToolCallContent>(serialized, options); 101var toolCall = Assert.IsType<ToolCallContent>(result);
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.FunctionCallContent.g.cs (3)
137DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 139Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 147AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
354if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent)) 358if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent[]))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolCallContent.g.cs (3)
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolCallContent.g.cs (3)
117DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 119Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 127AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolApprovalRequestContent.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalRequestContent((string)args[0], (global::Microsoft.Extensions.AI.ToolCallContent)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null), 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info0); 191ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolApprovalResponseContent.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalResponseContent((string)args[0], (bool)args[1], (global::Microsoft.Extensions.AI.ToolCallContent)args[2]), 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), 71var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 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), 89properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info1); 221ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolCallContent.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>? _ToolCallContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> ToolCallContent 22get => _ToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> Create_ToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolCallContentArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent[]>? _ToolCallContentArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent[]> ToolCallContentArray 22get => _ToolCallContentArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent[]>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent[]> Create_ToolCallContentArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.Extensions.AI.ToolCallContent[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info); 45private void ToolCallContentArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.ToolCallContent[]? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolCallContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.DerivedToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
TestJsonSerializerContext.cs (1)
50[JsonSerializable(typeof(ToolCallContent[]))]
Utilities\AIJsonUtilitiesTests.cs (3)
1368var toolCallTypes = options.GetTypeInfo(typeof(ToolCallContent)).PolymorphismOptions!.DerivedTypes; 1374ToolCallContent tc = new DerivedToolCallContent { CustomValue = 42 }; 1379DerivedToolCallContent deserializedTc = Assert.IsType<DerivedToolCallContent>(JsonSerializer.Deserialize<ToolCallContent>(json, options));
Microsoft.Extensions.AI.Evaluation.Reporting (41)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (3)
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ToolApprovalRequestContent.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalRequestContent((string)args[0], (global::Microsoft.Extensions.AI.ToolCallContent)args[1]), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info0); 193ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\JsonContext.ToolApprovalResponseContent.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalResponseContent((string)args[0], (bool)args[1], (global::Microsoft.Extensions.AI.ToolCallContent)args[2]), 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), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 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), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info1); 223ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.FunctionCallContent.g.cs (3)
139DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 141Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 149AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", 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)
224if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.McpServerToolCallContent.g.cs (3)
119DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 121Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 129AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolCallContent.g.cs (13)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>? _ToolCallContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> ToolCallContent 24get => _ToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> Create_ToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.WebSearchToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (41)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolCallContent.g.cs (3)
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ToolApprovalRequestContent.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalRequestContent((string)args[0], (global::Microsoft.Extensions.AI.ToolCallContent)args[1]), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info0); 193ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\JsonContext.ToolApprovalResponseContent.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalResponseContent((string)args[0], (bool)args[1], (global::Microsoft.Extensions.AI.ToolCallContent)args[2]), 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), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 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), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info1); 223ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.FunctionCallContent.g.cs (3)
139DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 141Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 149AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", 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)
220if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.McpServerToolCallContent.g.cs (3)
119DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 121Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 129AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolCallContent.g.cs (13)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>? _ToolCallContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> ToolCallContent 24get => _ToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> Create_ToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.WebSearchToolCallContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.OpenAI.Tests (19)
OpenAIConversionTests.cs (10)
1078ToolCallContent? fsToolCall = updates[6].Contents.OfType<ToolCallContent>().FirstOrDefault(); 1089ToolCallContent? cuToolCall = updates[7].Contents.OfType<ToolCallContent>().FirstOrDefault(); 1388ToolCallContent? fileSearchToolCall = message.Contents.OfType<ToolCallContent>().FirstOrDefault(c => c.CallId == "fs_123"); 1397ToolCallContent? computerToolCall = message.Contents.OfType<ToolCallContent>().FirstOrDefault(c => c.CallId == "call_456"); 1407ToolCallContent? applyPatchToolCall = message.Contents.OfType<ToolCallContent>().FirstOrDefault(c => c.CallId == "call_patch_789");
OpenAIResponseClientTests.cs (7)
910AIContent computerUserItem = Assert.Single(responseMessage.Contents, content => content is ToolCallContent); 915ToolCallContent computerToolCall = Assert.IsType<ToolCallContent>(computerUserItem); 1013ToolCallContent content = Assert.IsType<ToolCallContent>(Assert.Single(updates[3].Contents)); 6854var toolCall = Assert.Single(message.Contents.OfType<ToolCallContent>());
parent\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (2)
75private static void AssertToolCallNameAndArguments(ToolCallContent expected, ToolCallContent actual)
Microsoft.Extensions.AI.Stabilization.Tests (41)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolCallContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.FunctionCallContent.g.cs (3)
137DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 139Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 147AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
126if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent))
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ImageGenerationToolCallContent.g.cs (3)
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.McpServerToolCallContent.g.cs (3)
117DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 119Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 127AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolApprovalRequestContent.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalRequestContent((string)args[0], (global::Microsoft.Extensions.AI.ToolCallContent)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null), 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info0); 191ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolApprovalResponseContent.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalResponseContent((string)args[0], (bool)args[1], (global::Microsoft.Extensions.AI.ToolCallContent)args[2]), 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), 71var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 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), 89properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info1); 221ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolCallContent.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>? _ToolCallContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> ToolCallContent 22get => _ToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> Create_ToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.WebSearchToolCallContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Tests (45)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (2)
2103new ToolApprovalRequestContent(tarc.RequestId, (ToolCallContent)CloneFcc(tarc.ToolCall)) 2108new ToolApprovalResponseContent(tarc.RequestId, tarc.Approved, (ToolCallContent)CloneFcc(tarc.ToolCall))
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.FunctionCallContent.g.cs (3)
137DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 139Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 147AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
234if (type == typeof(global::Microsoft.Extensions.AI.ToolCallContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolCallContent.g.cs (3)
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolCallContent.g.cs (3)
117DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 119Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 127AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolApprovalRequestContent.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalRequestContent((string)args[0], (global::Microsoft.Extensions.AI.ToolCallContent)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.Extensions.AI.ToolCallContent)}, modifiers: null), 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolApprovalRequestContent).GetProperty("ToolCall", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ToolCallContent), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info0); 191ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolApprovalResponseContent.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolApprovalResponseContent((string)args[0], (bool)args[1], (global::Microsoft.Extensions.AI.ToolCallContent)args[2]), 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), 71var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 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), 89properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, info1); 221ParameterType = typeof(global::Microsoft.Extensions.AI.ToolCallContent),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolCallContent.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>? _ToolCallContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> ToolCallContent 22get => _ToolCallContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolCallContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> Create_ToolCallContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolCallContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolCallContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolCallContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolCallContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolCallContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolCallContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolCallContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolCallContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
parent\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (2)
75private static void AssertToolCallNameAndArguments(ToolCallContent expected, ToolCallContent actual)