15 references to ChatResponseUpdate
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseUpdate.cs (1)
49
:
this
(role, content is null ? null : [new TextContent(content)])
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (2)
212
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [hcitcc])
243
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [hcitrc])
OpenAIResponsesChatClient.cs (1)
317
new
(lastRole, content is not null ? [content] : null)
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIConversionTests.cs (3)
1249
var responseUpdate = new
ChatResponseUpdate
(ChatRole.Assistant, [functionCallContent])
1284
var responseUpdate = new
ChatResponseUpdate
(ChatRole.Assistant, [functionCall1, functionCall2])
1312
var responseUpdate = new
ChatResponseUpdate
(ChatRole.Assistant,
Microsoft.Extensions.AI.Tests (8)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (7)
975
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId };
978
new
ChatResponseUpdate
(
1048
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new TextContent("Text 1")]) { MessageId = messageId };
1050
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new TextContent("Text 2")]) { MessageId = messageId };
1052
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId };
1054
yield return new
ChatResponseUpdate
(
1061
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func3")]) { MessageId = messageId };
ChatCompletion\ImageGeneratingChatClientTests.cs (1)
359
yield return new
ChatResponseUpdate
(ChatRole.Assistant,