Method SubmitAsync
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
SubmitAsync(string, CancellationToken)
Asynchronously submits a prompt to the text generation model and returns the result.
Task<TextGenerationResult> SubmitAsync(string prompt, CancellationToken cancellationToken = default)
Parameters
prompt
stringThe prompt to submit to the model for text generation.
cancellationToken
CancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TextGenerationResult>
A task representing the asynchronous operation, with a TextGenerationResult containing the generated text.