14 references to ToolCallContent
Microsoft.Extensions.AI.Abstractions (5)
Contents\CodeInterpreterToolCallContent.cs (1)
22
:
base
(callId)
Contents\FunctionCallContent.cs (1)
27
:
base
(callId)
Contents\ImageGenerationToolCallContent.cs (1)
16
:
base
(callId)
Contents\McpServerToolCallContent.cs (1)
35
:
base
(Throw.IfNullOrWhitespace(callId))
Contents\WebSearchToolCallContent.cs (1)
22
:
base
(callId)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\ToolCallContentTests.cs (3)
16
ToolCallContent c =
new
("callId1");
26
Assert.Throws<ArgumentNullException>("callId", () => new
ToolCallContent
(null!));
32
ToolCallContent c =
new
("callId1");
Utilities\AIJsonUtilitiesTests.cs (1)
1928
:
base
("callId")
Microsoft.Extensions.AI.OpenAI (5)
OpenAIResponsesChatClient.cs (5)
292
message.Contents.Add(new
ToolCallContent
(outputItem.Id));
297
message.Contents.Add(new
ToolCallContent
(computerCall.CallId) { RawRepresentation = computerCall });
305
message.Contents.Add(new
ToolCallContent
(patchCall.CallId) { RawRepresentation = patchCall });
620
var toolCallUpdate = CreateUpdate(new
ToolCallContent
(outputItemDoneUpdate.Item.Id));
626
yield return CreateUpdate(new
ToolCallContent
(computerCall.CallId) { RawRepresentation = outputItemDoneUpdate.Item });