18 references to new
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
378return new(firstContent.CallId)
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\AIContentTests.cs (1)
85new CodeInterpreterToolCallContent("ci123"),
Contents\CodeInterpreterToolCallContentTests.cs (4)
15CodeInterpreterToolCallContent c = new("callId1"); 25CodeInterpreterToolCallContent c = new("call123"); 48CodeInterpreterToolCallContent c = new("call456") 68CodeInterpreterToolCallContent content = new("call123")
Contents\ToolApprovalRequestContentTests.cs (1)
26new CodeInterpreterToolCallContent("CI1") { Inputs = [new DataContent("print('hello')"u8.ToArray(), "text/x-python")] },
Contents\ToolApprovalResponseContentTests.cs (1)
26new CodeInterpreterToolCallContent("CI1") { Inputs = [new DataContent("print('hello')"u8.ToArray(), "text/x-python")] },
Contents\ToolCallContentTests.cs (1)
58new CodeInterpreterToolCallContent("call3"),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
256message.Contents.Add(new CodeInterpreterToolCallContent(cicri.Id) 499yield return CreateUpdate(new CodeInterpreterToolCallContent(codeInterpreterDeltaUpdate.ItemId)
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientTests.cs (1)
1862var codeInterpreterApproval = new ToolApprovalResponseContent("req-ci-1", true, new CodeInterpreterToolCallContent("ci-call-1"));
Microsoft.Extensions.AI.Stabilization.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolCallContentTests.cs (4)
15CodeInterpreterToolCallContent c = new("callId1"); 25CodeInterpreterToolCallContent c = new("call123"); 48CodeInterpreterToolCallContent c = new("call456") 68CodeInterpreterToolCallContent content = new("call123")
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
661new CodeInterpreterToolCallContent("ci-call-1") { Inputs = [new TextContent("print('hello')")] }, 677yield return new() { Contents = [new CodeInterpreterToolCallContent("ci-call-1") { Inputs = [new TextContent("print('hello')")] }] };