Table of Contents

Class MessageExtension

Namespace
AutoGen.OpenAI.V1
Assembly
AutoGen.OpenAI.V1.dll
public static class MessageExtension
Inheritance
MessageExtension
Inherited Members

Fields

IMAGE_CONTENT_TYPE

public static string IMAGE_CONTENT_TYPE

Field Value

string

TEXT_CONTENT_TYPE

public static string TEXT_CONTENT_TYPE

Field Value

string

Methods

ToChatRequestUserMessage(Message)

[Obsolete("This method is deprecated, please replace Message with one of the built-in message types.")]
public static ChatRequestUserMessage ToChatRequestUserMessage(this Message message)

Parameters

message Message

Returns

ChatRequestUserMessage

ToOpenAIChatRequestMessage(IAgent, IMessage)

[Obsolete("This method is deprecated")]
public static IEnumerable<ChatRequestMessage> ToOpenAIChatRequestMessage(this IAgent agent, IMessage message)

Parameters

agent IAgent
message IMessage

Returns

IEnumerable<ChatRequestMessage>