20 instantiations of WebSearchToolResultContent
Microsoft.Extensions.AI.Abstractions (1)
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.WebSearchToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\AIContentTests.cs (1)
88new WebSearchToolResultContent("ws456"),
Contents\ToolResultContentTests.cs (1)
59new WebSearchToolResultContent("call5"),
Contents\WebSearchToolResultContentTests.cs (5)
16WebSearchToolResultContent c = new("callId"); 26WebSearchToolResultContent c = new("ws_call123"); 52WebSearchToolResultContent c = new("ws_call789") 78WebSearchToolResultContent content = new("ws_call123") 106AIContent content = new WebSearchToolResultContent("ws_call456")
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.WebSearchToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.WebSearchToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.WebSearchToolResultContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
282message.Contents.Add(new WebSearchToolResultContent(wscri.Id) 578yield return CreateUpdate(new WebSearchToolResultContent(wscri.Id)
Microsoft.Extensions.AI.Stabilization.Tests (6)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.WebSearchToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.WebSearchToolResultContent((string)args[0]),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\WebSearchToolResultContentTests.cs (5)
16WebSearchToolResultContent c = new("callId"); 26WebSearchToolResultContent c = new("ws_call123"); 52WebSearchToolResultContent c = new("ws_call789") 78WebSearchToolResultContent content = new("ws_call123") 106AIContent content = new WebSearchToolResultContent("ws_call456")
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.WebSearchToolResultContent((string)args[0]),
126 references to WebSearchToolResultContent
Microsoft.Extensions.AI.Abstractions (18)
Contents\AIContent.cs (1)
34[JsonDerivedType(typeof(WebSearchToolResultContent), typeDiscriminator: "webSearchToolResult")]
Contents\ToolResultContent.cs (1)
17[JsonDerivedType(typeof(WebSearchToolResultContent), "webSearchToolResult")]
Contents\WebSearchToolResultContent.cs (1)
19/// Initializes a new instance of the <see cref="WebSearchToolResultContent"/> class.
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>? _WebSearchToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> WebSearchToolResultContent 24get => _WebSearchToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> Create_WebSearchToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.WebSearchToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
376if (type == typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent))
Microsoft.Extensions.AI.Abstractions.Tests (25)
Contents\WebSearchToolResultContentTests.cs (10)
16WebSearchToolResultContent c = new("callId"); 26WebSearchToolResultContent c = new("ws_call123"); 52WebSearchToolResultContent c = new("ws_call789") 78WebSearchToolResultContent content = new("ws_call123") 88var deserialized = JsonSerializer.Deserialize<WebSearchToolResultContent>(json, AIJsonUtilities.DefaultOptions); 117var result = Assert.IsType<WebSearchToolResultContent>(deserialized); 149var wsResult = Assert.IsType<WebSearchToolResultContent>(result);
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
386if (type == typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolResultContent.g.cs (14)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>? _WebSearchToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> WebSearchToolResultContent 22get => _WebSearchToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> Create_WebSearchToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.WebSearchToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Extensions.AI.Evaluation.Reporting (15)
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>? _WebSearchToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> WebSearchToolResultContent 24get => _WebSearchToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> Create_WebSearchToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.WebSearchToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
248if (type == typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (15)
Generated\361d1da7f942c932\JsonContext.WebSearchToolResultContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>? _WebSearchToolResultContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> WebSearchToolResultContent 24get => _WebSearchToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> Create_WebSearchToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.WebSearchToolResultContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
244if (type == typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent))
Microsoft.Extensions.AI.OpenAI.Tests (13)
OpenAIConversionTests.cs (4)
1072WebSearchToolResultContent? wsToolResult = updates[5].Contents.OfType<WebSearchToolResultContent>().FirstOrDefault(); 1383WebSearchToolResultContent? webSearchToolResult = message.Contents.OfType<WebSearchToolResultContent>().FirstOrDefault(c => c.CallId == "ws_123");
OpenAIResponseClientIntegrationTests.cs (2)
104var wsResult = m.Contents.OfType<WebSearchToolResultContent>().FirstOrDefault();
OpenAIResponseClientTests.cs (7)
7143var wsResult = Assert.IsType<WebSearchToolResultContent>(message.Contents[1]); 7282var wsResultUpdate = updates.FirstOrDefault(u => u.Contents.OfType<WebSearchToolResultContent>().Any()); 7284var wsResult = wsResultUpdate.Contents.OfType<WebSearchToolResultContent>().First(); 7307var coalescedWsResult = message.Contents.OfType<WebSearchToolResultContent>().Single();
Microsoft.Extensions.AI.Stabilization.Tests (25)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
150if (type == typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent))
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.WebSearchToolResultContent.g.cs (14)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>? _WebSearchToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> WebSearchToolResultContent 22get => _WebSearchToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> Create_WebSearchToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.WebSearchToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\WebSearchToolResultContentTests.cs (10)
16WebSearchToolResultContent c = new("callId"); 26WebSearchToolResultContent c = new("ws_call123"); 52WebSearchToolResultContent c = new("ws_call789") 78WebSearchToolResultContent content = new("ws_call123") 88var deserialized = JsonSerializer.Deserialize<WebSearchToolResultContent>(json, AIJsonUtilities.DefaultOptions); 117var result = Assert.IsType<WebSearchToolResultContent>(deserialized); 149var wsResult = Assert.IsType<WebSearchToolResultContent>(result);
Microsoft.Extensions.AI.Tests (15)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
258if (type == typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent))
Generated\361d1da7f942c932\TestJsonSerializerContext.WebSearchToolResultContent.g.cs (14)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>? _WebSearchToolResultContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> WebSearchToolResultContent 22get => _WebSearchToolResultContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> Create_WebSearchToolResultContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.WebSearchToolResultContent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.WebSearchToolResultContent>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent), 58Getter = static obj => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.WebSearchToolResultContent)obj).Outputs = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.WebSearchToolResultContent).GetProperty("Outputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),