Class StreamingCompletedEventArgs
Event args for streaming completed event.
public sealed class StreamingCompletedEventArgs : EventArgs
- Inheritance
-
StreamingCompletedEventArgs
- Inherited Members
Examples
Reading the agent's final result and total token count after streaming ends:
using LMKit.Agents.Streaming;
streamingAgent.StreamingCompleted += (s, e) =>
Console.WriteLine($"Streamed {e.TokenCount} tokens; status={e.Result.Status}");
Properties
- Result
Gets the execution result.
- TokenCount
Gets the total token count.