Method ContinueLastAssistantResponse
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
ContinueLastAssistantResponse(CancellationToken)
Continues generating additional tokens for the last assistant response without any new user input.
public TextGenerationResult ContinueLastAssistantResponse(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenOptional. Monitors for cancellation requests.
Returns
- TextGenerationResult
A TextGenerationResult containing the continued text.
Exceptions
- InvalidOperationException
Thrown if the last message is not by the assistant, or if a grammar is attached (grammar-based generation cannot be continued).
- OperationCanceledException
Thrown if the operation is canceled.