50 references to ChatResponseUpdate
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
634
new
()
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponse.cs (2)
113
extra = new
ChatResponseUpdate
131
updates[i] = new
ChatResponseUpdate
Microsoft.Extensions.AI.Abstractions.Tests (26)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (22)
35
new
() { Contents = [new UsageContent(new() { InputTokenCount = 1, OutputTokenCount = 2 })] },
36
new
() { Contents = [new UsageContent(new() { InputTokenCount = 4, OutputTokenCount = 5 })] },
243
updates.Add(
new
() { Contents = [new DataContent("data:image/png;base64,aGVsbG8=")] });
273
new
() { Contents = [new TextReasoningContent("D")] },
274
new
() { Contents = [new TextReasoningContent("E")] },
275
new
() { Contents = [new TextReasoningContent("F")] },
278
new
() { Contents = [new TextReasoningContent("I")] },
279
new
() { Contents = [new TextReasoningContent("J")] },
281
new
() { Contents = [new TextReasoningContent("L")] },
284
new
() { Contents = [new TextReasoningContent("O")] },
285
new
() { Contents = [new TextReasoningContent("P")] },
311
new
() { Contents = [new TextContent("D") { Annotations = [new()] }] },
312
new
() { Contents = [new TextContent("E") { Annotations = [new()] }] },
313
new
() { Contents = [new TextContent("F") { Annotations = [new()] }] },
314
new
() { Contents = [new TextContent("G") { Annotations = [] }] },
315
new
() { Contents = [new TextContent("H") { Annotations = [] }] },
316
new
() { Contents = [new TextContent("I") { Annotations = [new()] }] },
317
new
() { Contents = [new TextContent("J") { Annotations = [new()] }] },
319
new
() { Contents = [new TextContent("L") { Annotations = [new()] }] },
322
new
() { Contents = [new TextContent("O") { Annotations = [new()] }] },
323
new
() { Contents = [new TextContent("P") { Annotations = [new()] }] },
350
new
() { Contents = [new UsageContent(new() { TotalTokenCount = 42 })] },
ChatCompletion\ChatResponseUpdateTests.cs (4)
16
ChatResponseUpdate update =
new
();
33
ChatResponseUpdate update =
new
();
87
ChatResponseUpdate update =
new
()
115
ChatResponseUpdate original =
new
()
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
166
ChatResponseUpdate responseUpdate =
new
()
228
var responseUpdate = new
ChatResponseUpdate
Microsoft.Extensions.AI.OpenAI (4)
OpenAIAssistantsChatClient.cs (2)
174
ChatResponseUpdate ruUpdate =
new
()
259
yield return
new
()
OpenAIChatClient.cs (2)
321
ChatResponseUpdate responseUpdate =
new
()
388
ChatResponseUpdate responseUpdate =
new
()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
619
var responseUpdate = new
ChatResponseUpdate
Microsoft.Extensions.AI.Tests (14)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
38
var expectedUpdates = Enumerable.Range(0, 3).Select(i => new
ChatResponseUpdate
()).ToArray();
ChatCompletion\DistributedCachingChatClientTest.cs (8)
249
new
()
262
new
()
267
new
()
315
new
() { Role = ChatRole.Assistant, Contents = [new FunctionCallContent("callId1", "separator")] },
368
new
() { Role = ChatRole.Assistant, Contents = [new TextContent("Hello")] },
369
new
() { Role = ChatRole.Assistant, Contents = [new TextContent(" world, ")] },
370
new
()
381
new
()
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
742
new
() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] },
743
new
() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] }
748
updates = [
new
() { Contents = [new TextContent("OK bye")] }];
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
75
yield return new
ChatResponseUpdate
80
yield return new
ChatResponseUpdate