7 instantiations of CodeInterpreterToolCallContent
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
280return new()
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\CodeInterpreterToolCallContentTests.cs (4)
15CodeInterpreterToolCallContent c = new(); 25CodeInterpreterToolCallContent c = new(); 50CodeInterpreterToolCallContent c = new() 71CodeInterpreterToolCallContent content = new()
Microsoft.Extensions.AI.OpenAI (2)
OpenAIAssistantsChatClient.cs (1)
202CodeInterpreterToolCallContent hcitcc = new()
OpenAIResponsesChatClient.cs (1)
1124contents.Add(new CodeInterpreterToolCallContent
22 references to CodeInterpreterToolCallContent
Microsoft.Extensions.AI.Abstractions (7)
ChatCompletion\ChatResponseExtensions.cs (4)
250Coalesce<CodeInterpreterToolCallContent>( 256var firstContent = (CodeInterpreterToolCallContent)contents[start]; 272(inputs ??= []).AddRange(((CodeInterpreterToolCallContent)contents[i]).Inputs ?? []);
Contents\CodeInterpreterToolCallContent.cs (1)
20/// Initializes a new instance of the <see cref="CodeInterpreterToolCallContent"/> class.
Utilities\AIJsonUtilities.Defaults.cs (2)
60AddAIContentType(options, typeof(CodeInterpreterToolCallContent), typeDiscriminatorId: "codeInterpreterToolCall", checkBuiltIn: false); 134[JsonSerializable(typeof(CodeInterpreterToolCallContent))]
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\CodeInterpreterToolCallContentTests.cs (6)
15CodeInterpreterToolCallContent c = new(); 25CodeInterpreterToolCallContent c = new(); 50CodeInterpreterToolCallContent c = new() 71CodeInterpreterToolCallContent content = new() 82var deserializedSut = JsonSerializer.Deserialize<CodeInterpreterToolCallContent>(json, AIJsonUtilities.DefaultOptions);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIAssistantsChatClient.cs (1)
202CodeInterpreterToolCallContent hcitcc = new()
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAIAssistantChatClientIntegrationTests.cs (2)
65var toolCallContent = response.Messages.SelectMany(m => m.Contents).OfType<CodeInterpreterToolCallContent>().SingleOrDefault();
OpenAIResponseClientIntegrationTests.cs (2)
41var toolCallContent = response.Messages.SelectMany(m => m.Contents).OfType<CodeInterpreterToolCallContent>().SingleOrDefault();
OpenAIResponseClientTests.cs (4)
2360var codeCall = Assert.IsType<CodeInterpreterToolCallContent>(message.Contents[0]); 2580var codeCall = Assert.IsType<CodeInterpreterToolCallContent>(message.Contents[0]);