15 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)
209
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [hcitcc])
240
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [hcitrc])
OpenAIResponsesChatClient.cs (1)
303
new
(lastRole, content is not null ? [content] : null)
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIConversionTests.cs (3)
1046
var responseUpdate = new
ChatResponseUpdate
(ChatRole.Assistant, [functionCallContent])
1081
var responseUpdate = new
ChatResponseUpdate
(ChatRole.Assistant, [functionCall1, functionCall2])
1109
var responseUpdate = new
ChatResponseUpdate
(ChatRole.Assistant,
Microsoft.Extensions.AI.Tests (8)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (7)
706
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId };
709
new
ChatResponseUpdate
(
779
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new TextContent("Text 1")]) { MessageId = messageId };
781
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new TextContent("Text 2")]) { MessageId = messageId };
783
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1")]) { MessageId = messageId };
785
yield return new
ChatResponseUpdate
(
792
yield return new
ChatResponseUpdate
(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func3")]) { MessageId = messageId };
ChatCompletion\ImageGeneratingChatClientTests.cs (1)
359
yield return new
ChatResponseUpdate
(ChatRole.Assistant,