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