Interface IStreamingMiddleware
The streaming middleware interface. For non-streaming version middleware, check IMiddleware.
public interface IStreamingMiddleware : IMiddleware
- Inherited Members
Methods
InvokeAsync(MiddlewareContext, IStreamingAgent, CancellationToken)
The streaming version of InvokeAsync(MiddlewareContext, IAgent, CancellationToken).
IAsyncEnumerable<IMessage> InvokeAsync(MiddlewareContext context, IStreamingAgent agent, CancellationToken cancellationToken = default)
Parameters
context
MiddlewareContextagent
IStreamingAgentcancellationToken
CancellationToken