Class Message
Represents a message in the chat system with metadata about the sender and timing.
Implements
Inherited Members
Namespace: VulcanAI.Connectors
Assembly: VulcanAI.dll
Syntax
public record Message : IEquatable<Message>
Constructors
| Edit this page View SourceMessage(string, string, string?)
Initializes a new instance of the Message class.
Declaration
public Message(string content, string sender, string? channel = null)
Parameters
Type | Name | Description |
---|---|---|
string | content | The content of the message. |
string | sender | The name of the message sender. |
string | channel | The optional channel name where the message was sent. |
Properties
| Edit this page View SourceChannel
Gets the optional channel name where the message was sent.
Declaration
public string? Channel { get; init; }
Property Value
Type | Description |
---|---|
string |
Content
Gets the content of the message.
Declaration
public string Content { get; init; }
Property Value
Type | Description |
---|---|
string |
Sender
Gets the name of the message sender.
Declaration
public string Sender { get; init; }
Property Value
Type | Description |
---|---|
string |
Timestamp
Gets the timestamp when the message was created.
Declaration
public DateTime Timestamp { get; init; }
Property Value
Type | Description |
---|---|
DateTime |