IChatCopilot.SaveResponseAsync
Contents
[
Hide
]SaveResponseAsync(string, string, CancellationToken?)
Asynchronously saves the response for the given message to a PDF file.
public Task SaveResponseAsync(string message, string outputFileName,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
message | String | The input message for which the response is saved. |
outputFileName | String | The name of the output PDF file to save the response. |
cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation.
See Also
- interface IChatCopilot
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF
SaveResponseAsync(string, string, SaveFormat, CancellationToken?)
Asynchronously saves the response for the given message to a file with specified format.
public Task SaveResponseAsync(string message, string outputFileName, SaveFormat saveFormat,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
message | String | The input message for which the response is saved. |
outputFileName | String | The name of the output file to save the response. |
saveFormat | SaveFormat | The format in which to save the response (PDF if not specified). |
cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation.
See Also
- enum SaveFormat
- interface IChatCopilot
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF
SaveResponseAsync(List<string>, string, CancellationToken?)
Asynchronously saves the responses for the given list of messages to a PDF file.
public Task SaveResponseAsync(List<string> messages, string outputFileName,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
messages | List`1 | The list of input messages for which responses are saved. |
outputFileName | String | The name of the output PDF file to save the responses. |
cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation.
See Also
- interface IChatCopilot
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF
SaveResponseAsync(List<string>, string, SaveFormat, CancellationToken?)
Asynchronously saves the responses for the given list of messages to a file with specified format.
public Task SaveResponseAsync(List<string> messages, string outputFileName, SaveFormat saveFormat,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
messages | List`1 | The list of input messages for which responses are saved. |
outputFileName | String | The name of the output file to save the responses. |
saveFormat | SaveFormat | The format in which to save the responses (PDF if not specified). |
cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation.
See Also
- enum SaveFormat
- interface IChatCopilot
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF