ChatResponseExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for working with ChatResponse and ChatResponseUpdate instances.
public ref class ChatResponseExtensions abstract sealed
public static class ChatResponseExtensions
type ChatResponseExtensions = class
Public Module ChatResponseExtensions
- Inheritance
-
ChatResponseExtensions
Methods
AddMessages(IList<ChatMessage>, ChatResponse) |
Adds all of the messages from |
AddMessages(IList<ChatMessage>, ChatResponseUpdate, Func<AIContent,Boolean>) |
Converts the |
AddMessages(IList<ChatMessage>, IEnumerable<ChatResponseUpdate>) |
Converts the |
AddMessagesAsync(IList<ChatMessage>, IAsyncEnumerable<ChatResponseUpdate>, CancellationToken) |
Converts the |
ToChatResponse(IEnumerable<ChatResponseUpdate>) |
Combines ChatResponseUpdate instances into a single ChatResponse. |
ToChatResponseAsync(IAsyncEnumerable<ChatResponseUpdate>, CancellationToken) |
Combines ChatResponseUpdate instances into a single ChatResponse. |