50 references to ChatResponseUpdate
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
409var toolResultUpdate = new ChatResponseUpdate
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponse.cs (2)
113extra = new ChatResponseUpdate 131updates[i] = new ChatResponseUpdate
Microsoft.Extensions.AI.Abstractions.Tests (26)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (22)
35new() { Contents = [new UsageContent(new() { InputTokenCount = 1, OutputTokenCount = 2 })] }, 36new() { Contents = [new UsageContent(new() { InputTokenCount = 4, OutputTokenCount = 5 })] }, 187updates.Add(new() { Contents = [new DataContent("data:image/png;base64,aGVsbG8=")] }); 217new() { Contents = [new TextReasoningContent("D")] }, 218new() { Contents = [new TextReasoningContent("E")] }, 219new() { Contents = [new TextReasoningContent("F")] }, 222new() { Contents = [new TextReasoningContent("I")] }, 223new() { Contents = [new TextReasoningContent("J")] }, 225new() { Contents = [new TextReasoningContent("L")] }, 228new() { Contents = [new TextReasoningContent("O")] }, 229new() { Contents = [new TextReasoningContent("P")] }, 255new() { Contents = [new TextContent("D") { Annotations = [new()] }] }, 256new() { Contents = [new TextContent("E") { Annotations = [new()] }] }, 257new() { Contents = [new TextContent("F") { Annotations = [new()] }] }, 258new() { Contents = [new TextContent("G") { Annotations = [] }] }, 259new() { Contents = [new TextContent("H") { Annotations = [] }] }, 260new() { Contents = [new TextContent("I") { Annotations = [new()] }] }, 261new() { Contents = [new TextContent("J") { Annotations = [new()] }] }, 263new() { Contents = [new TextContent("L") { Annotations = [new()] }] }, 266new() { Contents = [new TextContent("O") { Annotations = [new()] }] }, 267new() { Contents = [new TextContent("P") { Annotations = [new()] }] }, 294new() { Contents = [new UsageContent(new() { TotalTokenCount = 42 })] },
ChatCompletion\ChatResponseUpdateTests.cs (4)
16ChatResponseUpdate update = new(); 33ChatResponseUpdate update = new(); 87ChatResponseUpdate update = new() 115ChatResponseUpdate original = new()
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
166ChatResponseUpdate responseUpdate = new() 228var responseUpdate = new ChatResponseUpdate
Microsoft.Extensions.AI.OpenAI (4)
OpenAIAssistantsChatClient.cs (2)
183ChatResponseUpdate ruUpdate = new() 268yield return new()
OpenAIChatClient.cs (2)
331ChatResponseUpdate responseUpdate = new() 398ChatResponseUpdate responseUpdate = new()
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
619var responseUpdate = new ChatResponseUpdate
Microsoft.Extensions.AI.Tests (14)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
38var expectedUpdates = Enumerable.Range(0, 3).Select(i => new ChatResponseUpdate()).ToArray();
ChatCompletion\DistributedCachingChatClientTest.cs (8)
249new() 262new() 267new() 315new() { Role = ChatRole.Assistant, Contents = [new FunctionCallContent("callId1", "separator")] }, 368new() { Role = ChatRole.Assistant, Contents = [new TextContent("Hello")] }, 369new() { Role = ChatRole.Assistant, Contents = [new TextContent(" world, ")] }, 370new() 381new()
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
743new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] }, 744new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] } 749updates = [new() { Contents = [new TextContent("OK bye")] }];
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
78yield return new ChatResponseUpdate 83yield return new ChatResponseUpdate