Table of Contents

Method RegenerateResponse

Namespace
LMKit.TextGeneration
Assembly
LM-Kit.NET.dll

RegenerateResponse(CancellationToken)

Requests the model to generate a new response to the previous inquiry.

public TextGenerationResult RegenerateResponse(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional. A CancellationToken for handling cancellation requests.

Returns

TextGenerationResult

A TextGenerationResult object holding the result of the text generation operation.

Exceptions

OperationCanceledException

Thrown when the operation is cancelled based on the CancellationToken.

InvalidOperationException

Thrown when there is no response in the chat history.