Table of Contents

Class TextMessage

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll
public class TextMessage : ICanGetTextContent, IMessage
Inheritance
TextMessage
Implements
Inherited Members
Extension Methods

Constructors

TextMessage(Role, string, string?)

public TextMessage(Role role, string content, string? from = null)

Parameters

role Role
content string
from string

TextMessage(TextMessageUpdate)

public TextMessage(TextMessageUpdate update)

Parameters

update TextMessageUpdate

Properties

Content

public string Content { get; set; }

Property Value

string

From

public string? From { get; set; }

Property Value

string

Role

public Role Role { get; set; }

Property Value

Role

Methods

GetContent()

public string? GetContent()

Returns

string

ToString()

public override string ToString()

Returns

string

Update(TextMessageUpdate)

public void Update(TextMessageUpdate update)

Parameters

update TextMessageUpdate