Method OnTokenAsync
OnTokenAsync(AgentStreamToken, CancellationToken)
Called when a new token is received.
Task OnTokenAsync(AgentStreamToken token, CancellationToken cancellationToken = default)
Parameters
tokenAgentStreamTokenThe streaming token.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task representing the async operation.