50 references to ChatResponseUpdate
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
628
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)
34
new
() { Contents = [new UsageContent(new() { InputTokenCount = 1, OutputTokenCount = 2 })] },
35
new
() { Contents = [new UsageContent(new() { InputTokenCount = 4, OutputTokenCount = 5 })] },
242
updates.Add(
new
() { Contents = [new DataContent("data:image/png;base64,aGVsbG8=")] });
272
new
() { Contents = [new TextReasoningContent("D")] },
273
new
() { Contents = [new TextReasoningContent("E")] },
274
new
() { Contents = [new TextReasoningContent("F")] },
277
new
() { Contents = [new TextReasoningContent("I")] },
278
new
() { Contents = [new TextReasoningContent("J")] },
280
new
() { Contents = [new TextReasoningContent("L")] },
283
new
() { Contents = [new TextReasoningContent("O")] },
284
new
() { Contents = [new TextReasoningContent("P")] },
310
new
() { Contents = [new TextContent("D") { Annotations = [new()] }] },
311
new
() { Contents = [new TextContent("E") { Annotations = [new()] }] },
312
new
() { Contents = [new TextContent("F") { Annotations = [new()] }] },
313
new
() { Contents = [new TextContent("G") { Annotations = [] }] },
314
new
() { Contents = [new TextContent("H") { Annotations = [] }] },
315
new
() { Contents = [new TextContent("I") { Annotations = [new()] }] },
316
new
() { Contents = [new TextContent("J") { Annotations = [new()] }] },
318
new
() { Contents = [new TextContent("L") { Annotations = [new()] }] },
321
new
() { Contents = [new TextContent("O") { Annotations = [new()] }] },
322
new
() { Contents = [new TextContent("P") { Annotations = [new()] }] },
349
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)
165
ChatResponseUpdate responseUpdate =
new
()
220
var responseUpdate = new
ChatResponseUpdate
Microsoft.Extensions.AI.OpenAI (4)
OpenAIAssistantsChatClient.cs (2)
168
ChatResponseUpdate ruUpdate =
new
()
253
yield return
new
()
OpenAIChatClient.cs (2)
349
ChatResponseUpdate responseUpdate =
new
()
416
ChatResponseUpdate responseUpdate =
new
()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
693
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)
760
new
() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] },
761
new
() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] }
766
updates = [
new
() { Contents = [new TextContent("OK bye")] }];
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
75
yield return new
ChatResponseUpdate
80
yield return new
ChatResponseUpdate