IChatCopilot.SaveResponseAsync

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)
ParameterTypeDescription
messageStringThe input message for which the response is saved.
outputFileNameStringThe name of the output PDF file to save the response.
cancellationTokenNullable`1The cancellation token (optional).

Return Value

A task representing the asynchronous operation.

See Also


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)
ParameterTypeDescription
messageStringThe input message for which the response is saved.
outputFileNameStringThe name of the output file to save the response.
saveFormatSaveFormatThe format in which to save the response (PDF if not specified).
cancellationTokenNullable`1The cancellation token (optional).

Return Value

A task representing the asynchronous operation.

See Also


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)
ParameterTypeDescription
messagesList`1The list of input messages for which responses are saved.
outputFileNameStringThe name of the output PDF file to save the responses.
cancellationTokenNullable`1The cancellation token (optional).

Return Value

A task representing the asynchronous operation.

See Also


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)
ParameterTypeDescription
messagesList`1The list of input messages for which responses are saved.
outputFileNameStringThe name of the output file to save the responses.
saveFormatSaveFormatThe format in which to save the responses (PDF if not specified).
cancellationTokenNullable`1The cancellation token (optional).

Return Value

A task representing the asynchronous operation.

See Also