5 types derived from ToolResultContent
Microsoft.Extensions.AI.Abstractions (5)
Contents\CodeInterpreterToolResultContent.cs (1)
11public sealed class CodeInterpreterToolResultContent : ToolResultContent
Contents\FunctionResultContent.cs (1)
15public class FunctionResultContent : ToolResultContent
Contents\ImageGenerationToolResultContent.cs (1)
15public sealed class ImageGenerationToolResultContent : ToolResultContent
Contents\McpServerToolResultContent.cs (1)
17public sealed class McpServerToolResultContent : ToolResultContent
Contents\WebSearchToolResultContent.cs (1)
16public sealed class WebSearchToolResultContent : ToolResultContent
14 instantiations of ToolResultContent
Microsoft.Extensions.AI.Abstractions (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\ToolResultContentTests.cs (3)
15ToolResultContent c = new("callId1"); 25Assert.Throws<ArgumentNullException>("callId", () => new ToolResultContent(null!)); 31ToolResultContent c = new("callId1");
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (5)
OpenAIResponsesChatClient.cs (5)
293message.Contents.Add(new ToolResultContent(outputItem.Id) { RawRepresentation = outputItem }); 301message.Contents.Add(new ToolResultContent(computerCallOutput.CallId) { RawRepresentation = computerCallOutput }); 309message.Contents.Add(new ToolResultContent(patchCallOutput.CallId) { RawRepresentation = patchCallOutput }); 621toolCallUpdate.Contents.Add(new ToolResultContent(outputItemDoneUpdate.Item.Id) { RawRepresentation = outputItemDoneUpdate.Item }); 630yield return CreateUpdate(new ToolResultContent(computerCallOutput.CallId) { RawRepresentation = computerCallOutput });
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
208 references to ToolResultContent
Microsoft.Extensions.AI.Abstractions (31)
Contents\AIContent.cs (1)
22[JsonDerivedType(typeof(ToolResultContent), typeDiscriminator: "toolResult")]
Contents\ToolResultContent.cs (1)
21/// Initializes a new instance of the <see cref="ToolResultContent"/> class.
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.FunctionResultContent.g.cs (3)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 100Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).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)
356if (type == typeof(global::Microsoft.Extensions.AI.ToolResultContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (13)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>? _ToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> ToolResultContent 24get => _ToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> Create_ToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Abstractions.Tests (49)
Contents\FunctionResultContentTests.cs (1)
101AssertSerializationRoundtrips<ToolResultContent>(content);
Contents\McpServerToolResultContentTests.cs (1)
62AssertSerializationRoundtrips<ToolResultContent>(content);
Contents\ToolResultContentTests.cs (6)
15ToolResultContent c = new("callId1"); 31ToolResultContent c = new("callId1"); 66var deserialized = JsonSerializer.Deserialize<ToolResultContent>(serialized, options); 100var toolResult = Assert.IsType<ToolResultContent>(result);
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.FunctionResultContent.g.cs (3)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 98Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
362if (type == typeof(global::Microsoft.Extensions.AI.ToolResultContent)) 366if (type == typeof(global::Microsoft.Extensions.AI.ToolResultContent[]))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContent.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>? _ToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> ToolResultContent 22get => _ToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> Create_ToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContentArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent[]>? _ToolResultContentArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent[]> ToolResultContentArray 22get => _ToolResultContentArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent[]>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent[]> Create_ToolResultContentArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.Extensions.AI.ToolResultContent[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, info); 45private void ToolResultContentArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.ToolResultContent[]? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
TestJsonSerializerContext.cs (1)
51[JsonSerializable(typeof(ToolResultContent[]))]
Microsoft.Extensions.AI.Evaluation.Reporting (29)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.FunctionResultContent.g.cs (3)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 100Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).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)
228if (type == typeof(global::Microsoft.Extensions.AI.ToolResultContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (13)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>? _ToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> ToolResultContent 24get => _ToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> Create_ToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (29)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.ImageGenerationToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.McpServerToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (3)
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 80Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.FunctionResultContent.g.cs (3)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 100Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).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.ToolResultContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (13)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>? _ToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> ToolResultContent 24get => _ToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> Create_ToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.OpenAI.Tests (12)
OpenAIConversionTests.cs (10)
1083ToolResultContent? fsToolResult = updates[6].Contents.OfType<ToolResultContent>().FirstOrDefault(); 1095ToolResultContent? cuToolResult = updates[8].Contents.OfType<ToolResultContent>().FirstOrDefault(); 1392ToolResultContent? fileSearchToolResult = message.Contents.OfType<ToolResultContent>().FirstOrDefault(c => c.CallId == "fs_123"); 1402ToolResultContent? computerToolResult = message.Contents.OfType<ToolResultContent>().FirstOrDefault(c => c.CallId == "call_456"); 1412ToolResultContent? applyPatchToolResult = message.Contents.OfType<ToolResultContent>().FirstOrDefault(c => c.CallId == "call_patch_789");
OpenAIResponseClientTests.cs (2)
6859var toolResult = Assert.Single(message.Contents.OfType<ToolResultContent>());
Microsoft.Extensions.AI.Stabilization.Tests (29)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.FunctionResultContent.g.cs (3)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 98Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
130if (type == typeof(global::Microsoft.Extensions.AI.ToolResultContent))
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ImageGenerationToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.McpServerToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolResultContent.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>? _ToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> ToolResultContent 22get => _ToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> Create_ToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.WebSearchToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Tests (29)
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.FunctionResultContent.g.cs (3)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 98Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
238if (type == typeof(global::Microsoft.Extensions.AI.ToolResultContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.McpServerToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContent.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>? _ToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> ToolResultContent 22get => _ToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> Create_ToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolResultContent.g.cs (3)
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ToolResultContent), 78Getter = static obj => ((global::Microsoft.Extensions.AI.ToolResultContent)obj).CallId, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ToolResultContent).GetProperty("CallId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),