Table of Contents

Class Message

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll
[Obsolete("This message class is deprecated, please use a specific AutoGen built-in message type instead. For more information, please visit https://microsoft.github.io/autogen-for-net/articles/Built-in-messages.html")]
public class Message : IMessage
Inheritance
Message
Implements
Inherited Members
Extension Methods

Constructors

Message(Message)

public Message(Message other)

Parameters

other Message

Message(Role, string?, string?, ToolCall?)

public Message(Role role, string? content, string? from = null, ToolCall? toolCall = null)

Parameters

role Role
content string
from string
toolCall ToolCall

Properties

Content

public string? Content { get; set; }

Property Value

string

From

public string? From { get; set; }

Property Value

string

FunctionArguments

public string? FunctionArguments { get; set; }

Property Value

string

FunctionName

public string? FunctionName { get; set; }

Property Value

string

Metadata

public IList<KeyValuePair<string, object>> Metadata { get; set; }

Property Value

IList<KeyValuePair<string, object>>

Role

public Role Role { get; set; }

Property Value

Role

Value

raw message

public object? Value { get; set; }

Property Value

object

Methods

ToString()

public override string ToString()

Returns

string