25 references to new
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseExtensions.cs (1)
378return new(firstContent.CallId)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (9)
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"),
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (1)
205CodeInterpreterToolCallContent hcitcc = new(details.ToolCallId)
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)
1756var codeInterpreterApproval = new ToolApprovalResponseContent("req-ci-1", true, new CodeInterpreterToolCallContent("ci-call-1"));
Microsoft.Extensions.AI.Stabilization.Tests (5)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent((string)args[0]),
parent\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 (3)
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')")] }] };
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent((string)args[0]),