Method OnTokenAsync
- Namespace
- LMKit.Agents.Orchestration.Streaming
- Assembly
- LM-Kit.NET.dll
OnTokenAsync(OrchestrationStreamToken, CancellationToken)
Called when a new token is received from any agent in the orchestration.
public Task OnTokenAsync(OrchestrationStreamToken token, CancellationToken cancellationToken = default)
Parameters
tokenOrchestrationStreamTokenThe streaming token with agent context.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task representing the async operation.