10 instantiations of CodeInterpreterToolCallContent
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
323return 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 (3)
OpenAIAssistantsChatClient.cs (1)
205CodeInterpreterToolCallContent hcitcc = new()
OpenAIResponsesChatClient.cs (2)
230message.Contents.Add(new CodeInterpreterToolCallContent 431yield return CreateUpdate(new CodeInterpreterToolCallContent
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
614new CodeInterpreterToolCallContent { CallId = "ci-call-1", Inputs = [new TextContent("print('hello')")] }, 630yield return new() { Contents = [new CodeInterpreterToolCallContent { CallId = "ci-call-1", Inputs = [new TextContent("print('hello')")] }] };
28 references to CodeInterpreterToolCallContent
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
371case CodeInterpreterToolCallContent citcc:
Microsoft.Extensions.AI.Abstractions (7)
ChatCompletion\ChatResponseExtensions.cs (4)
293Coalesce<CodeInterpreterToolCallContent>( 299var firstContent = (CodeInterpreterToolCallContent)contents[start]; 315(inputs ??= []).AddRange(((CodeInterpreterToolCallContent)contents[i]).Inputs ?? []);
Contents\CodeInterpreterToolCallContent.cs (1)
21/// Initializes a new instance of the <see cref="CodeInterpreterToolCallContent"/> class.
Utilities\AIJsonUtilities.Defaults.cs (2)
60AddAIContentType(options, typeof(CodeInterpreterToolCallContent), typeDiscriminatorId: "codeInterpreterToolCall", checkBuiltIn: false); 136[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)
205CodeInterpreterToolCallContent hcitcc = new()
Microsoft.Extensions.AI.OpenAI.Tests (13)
OpenAIAssistantChatClientIntegrationTests.cs (2)
67var toolCallContent = response.Messages.SelectMany(m => m.Contents).OfType<CodeInterpreterToolCallContent>().SingleOrDefault();
OpenAIResponseClientIntegrationTests.cs (2)
46var toolCallContent = response.Messages.SelectMany(m => m.Contents).OfType<CodeInterpreterToolCallContent>().SingleOrDefault();
OpenAIResponseClientTests.cs (9)
2902var codeCall = Assert.IsType<CodeInterpreterToolCallContent>(message.Contents[0]); 3122var codeCall = Assert.IsType<CodeInterpreterToolCallContent>(message.Contents[0]); 3208u.Contents != null && u.Contents.Any(c => c is CodeInterpreterToolCallContent)).ToList(); 3217var content = update.Contents.OfType<CodeInterpreterToolCallContent>().First(); 3247var codeCall = Assert.IsType<CodeInterpreterToolCallContent>(message.Contents[0]);