25 references to WebSearchToolCallContent
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
254
contents[existingIndex] = new
WebSearchToolCallContent
(existing.CallId)
Microsoft.Extensions.AI.Abstractions.Tests (17)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (11)
1023
new() { Contents = [new
WebSearchToolCallContent
("ws1") { Queries = ["first query"] }] },
1029
new() { Contents = [new
WebSearchToolCallContent
("ws1") { Queries = ["second query"], RawRepresentation = rawRepresentation, AdditionalProperties = additionalProps }] },
1032
new() { Contents = [new
WebSearchToolCallContent
("ws2") { Queries = ["AI safety"] }] },
1035
new() { Contents = [new
WebSearchToolCallContent
("ws1")] },
1067
new() { Contents = [new
WebSearchToolCallContent
("ws1")] },
1068
new() { Contents = [new
WebSearchToolCallContent
("ws1") { Queries = ["query from second"] }] },
1086
new() { Contents = [new
WebSearchToolCallContent
("ws1") { Queries = ["q1"] }] },
1087
new() { Contents = [new
WebSearchToolCallContent
("ws2") { Queries = ["q2"] }] },
1088
new() { Contents = [new
WebSearchToolCallContent
("ws3") { Queries = ["q3"] }] },
1108
var inProgress = new
WebSearchToolCallContent
("ws1")
1123
new() { Contents = [new
WebSearchToolCallContent
("ws1") { Queries = ["dotnet extensions"] }] },
Contents\AIContentTests.cs (1)
87
new
WebSearchToolCallContent
("ws123"),
Contents\ToolCallContentTests.cs (1)
60
new
WebSearchToolCallContent
("call5"),
Contents\WebSearchToolCallContentTests.cs (4)
14
WebSearchToolCallContent c =
new
("callId");
24
WebSearchToolCallContent c =
new
("ws_call123");
47
WebSearchToolCallContent content =
new
("ws_call123")
63
AIContent content = new
WebSearchToolCallContent
("ws_call456")
Microsoft.Extensions.AI.OpenAI (3)
OpenAIResponsesChatClient.cs (3)
273
message.Contents.Add(new
WebSearchToolCallContent
(wscri.Id)
507
yield return CreateUpdate(new
WebSearchToolCallContent
(webSearchInProgressUpdate.ItemId)
572
yield return CreateUpdate(new
WebSearchToolCallContent
(wscri.Id)
Microsoft.Extensions.AI.Stabilization.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\Contents\WebSearchToolCallContentTests.cs (4)
14
WebSearchToolCallContent c =
new
("callId");
24
WebSearchToolCallContent c =
new
("ws_call123");
47
WebSearchToolCallContent content =
new
("ws_call123")
63
AIContent content = new
WebSearchToolCallContent
("ws_call456")