12 references to new
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseUpdate.cs (1)
53: this(role, content is null ? null : [new TextContent(content)])
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
226new(lastRole, content is not null ? [content] : null)
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIConversionTests.cs (3)
658var responseUpdate = new ChatResponseUpdate(ChatRole.Assistant, [functionCallContent]) 693var responseUpdate = new ChatResponseUpdate(ChatRole.Assistant, [functionCall1, functionCall2]) 721var responseUpdate = new ChatResponseUpdate(ChatRole.Assistant,
Microsoft.Extensions.AI.Tests (7)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (7)
643yield return new ChatResponseUpdate(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId }; 646new ChatResponseUpdate( 716yield return new ChatResponseUpdate(ChatRole.Assistant, [new TextContent("Text 1")]) { MessageId = messageId }; 718yield return new ChatResponseUpdate(ChatRole.Assistant, [new TextContent("Text 2")]) { MessageId = messageId }; 720yield return new ChatResponseUpdate(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId }; 722yield return new ChatResponseUpdate( 729yield return new ChatResponseUpdate(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func3")]) { MessageId = messageId };