Table of Contents

Class OpenAIChatCompletionMiddleware

Namespace
AutoGen.WebAPI
Assembly
AutoGen.WebAPI.dll
public class OpenAIChatCompletionMiddleware : IMiddleware
Inheritance
OpenAIChatCompletionMiddleware
Implements
Inherited Members

Constructors

OpenAIChatCompletionMiddleware(IAgent)

public OpenAIChatCompletionMiddleware(IAgent agent)

Parameters

agent IAgent

Methods

InvokeAsync(HttpContext, RequestDelegate)

Request handling method.

public Task InvokeAsync(HttpContext context, RequestDelegate next)

Parameters

context HttpContext

The HttpContext for the current request.

next RequestDelegate

The delegate representing the remaining middleware in the request pipeline.

Returns

Task

A Task that represents the execution of this middleware.