Table of Contents

Method OnErrorAsync

Namespace
LMKit.Agents.Streaming
Assembly
LM-Kit.NET.dll

OnErrorAsync(Exception, CancellationToken)

Called when an error occurs during streaming.

Task OnErrorAsync(Exception exception, CancellationToken cancellationToken = default)

Parameters

exception Exception

The exception that occurred.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task representing the async operation.