Table of Contents

Interface IStreamingMiddleware

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll

The streaming middleware interface. For non-streaming version middleware, check IMiddleware.

public interface IStreamingMiddleware : IMiddleware
Inherited Members

Methods

InvokeAsync(MiddlewareContext, IStreamingAgent, CancellationToken)

IAsyncEnumerable<IMessage> InvokeAsync(MiddlewareContext context, IStreamingAgent agent, CancellationToken cancellationToken = default)

Parameters

context MiddlewareContext
agent IStreamingAgent
cancellationToken CancellationToken

Returns

IAsyncEnumerable<IMessage>