Table of Contents

Class Message

A message in the conversation.

public record Message
Inheritance
object
Message
Extension Methods

Constructors

Message(Role, string)

public Message(Role role, string content)

Parameters

role Role

The role of the creator of the message.

content string

The content of the message.

Fields

Content

The content of the message.

public readonly string Content

Field Value

string

Role

The role of the creator of the message.

public readonly Role Role

Field Value

Role

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.