Table of Contents

Class OpenAIAgentExtension

Namespace
AutoGen.OpenAI.Extension
Assembly
AutoGen.OpenAI.dll
public static class OpenAIAgentExtension
Inheritance
OpenAIAgentExtension
Inherited Members

Methods

RegisterMessageConnector(MiddlewareStreamingAgent<OpenAIChatAgent>, OpenAIChatRequestMessageConnector?)

public static MiddlewareStreamingAgent<OpenAIChatAgent> RegisterMessageConnector(this MiddlewareStreamingAgent<OpenAIChatAgent> agent, OpenAIChatRequestMessageConnector? connector = null)

Parameters

agent MiddlewareStreamingAgent<OpenAIChatAgent>
connector OpenAIChatRequestMessageConnector

the connector to use. If null, a new instance of OpenAIChatRequestMessageConnector will be created.

Returns

MiddlewareStreamingAgent<OpenAIChatAgent>

RegisterMessageConnector(OpenAIChatAgent, OpenAIChatRequestMessageConnector?)

public static MiddlewareStreamingAgent<OpenAIChatAgent> RegisterMessageConnector(this OpenAIChatAgent agent, OpenAIChatRequestMessageConnector? connector = null)

Parameters

agent OpenAIChatAgent
connector OpenAIChatRequestMessageConnector

the connector to use. If null, a new instance of OpenAIChatRequestMessageConnector will be created.

Returns

MiddlewareStreamingAgent<OpenAIChatAgent>