Namespace LMKit.Agents.Streaming
Classes
- AgentStreamResult
Accumulates streaming tokens and provides the final result.
This class is both an IAgentStreamHandler that collects tokens and provides access to the accumulated content and final result.
- AgentStreamToken
Represents a token or chunk in a streaming agent response.
- AgentStreamingExtensions
Extension methods for streaming agent execution.
- BufferedStreamHandler
A stream handler that buffers tokens before forwarding.
Useful for reducing callback overhead when token-by-token updates are not needed, or for writing to destinations that benefit from larger writes.
- DelegateStreamHandler
A stream handler that delegates to callback functions.
Provides a simple way to handle streaming without implementing the full interface.
- MulticastStreamHandler
A stream handler that broadcasts to multiple handlers.
Useful for writing to multiple destinations simultaneously, such as console and file, or UI and logging.
- StreamingAgentExecutor
Executes agents with streaming output support.
Provides both callback-based and IAsyncEnumerable<T> APIs for consuming streaming agent responses.
- StreamingCompletedEventArgs
Event args for streaming completed event.
- StreamingStartedEventArgs
Event args for streaming started event.
- TextWriterStreamHandler
A stream handler that writes to a TextWriter.
Useful for writing streaming output to files, StringWriter, or other text-based destinations.
- ToolCallInfo
Information about a tool call during streaming.
Interfaces
- IAgentStreamHandler
Interface for handling streaming agent output.
Implement this interface to receive tokens as they are generated, enabling real-time display of agent responses.
Enums
- AgentStreamTokenType
The type of streaming token.