16 references to ChatResponseUpdate
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseUpdate.cs (1)
48: this(role, content is null ? null : [new TextContent(content)])
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (2)
211yield return new ChatResponseUpdate(ChatRole.Assistant, [hcitcc]) 241yield return new ChatResponseUpdate(ChatRole.Assistant, [hcitrc])
OpenAIResponsesChatClient.cs (1)
386new(lastRole, content is not null ? [content] : null)
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIConversionTests.cs (3)
1780var responseUpdate = new ChatResponseUpdate(ChatRole.Assistant, [functionCallContent]) 1815var responseUpdate = new ChatResponseUpdate(ChatRole.Assistant, [functionCall1, functionCall2]) 1843var responseUpdate = new ChatResponseUpdate(ChatRole.Assistant,
Microsoft.Extensions.AI.Tests (9)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (7)
1482yield return new ChatResponseUpdate(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId }; 1485new ChatResponseUpdate( 1558yield return new ChatResponseUpdate(ChatRole.Assistant, [new TextContent("Text 1")]) { MessageId = messageId }; 1560yield return new ChatResponseUpdate(ChatRole.Assistant, [new TextContent("Text 2")]) { MessageId = messageId }; 1562yield return new ChatResponseUpdate(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId }; 1564yield return new ChatResponseUpdate( 1571yield return new ChatResponseUpdate(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func3")]) { MessageId = messageId };
ChatCompletion\ImageGeneratingChatClientTests.cs (2)
359yield return new ChatResponseUpdate(ChatRole.Assistant, 488yield return new ChatResponseUpdate(ChatRole.Assistant, contents);