IChatCopilot.GetResponseAsync
Contents
[
Hide
]GetResponseAsync(string, CancellationToken?)
Asynchronously gets a response for the given message.
public Task<string> GetResponseAsync(string message, CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| message | String | The input message for which a response is requested. |
| cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation with the response string.
See Also
- interface IChatCopilot
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF
GetResponseAsync(List<string>, CancellationToken?)
Asynchronously gets a response for the given list of messages.
public Task<string> GetResponseAsync(List<string> messages,
CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| messages | List`1 | The list of input messages for which responses are requested. |
| cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation with the response string.
See Also
- interface IChatCopilot
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF