Table of Contents

Class AgentMessage

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

One turn of a conversation, read back out of the entries that wrote it.

public sealed record AgentMessage : IEquatable<AgentMessage>
Inheritance
AgentMessage
Implements
Inherited Members

Remarks

One shape for both authors rather than two, because what a reader does with a turn is the same either way: it has somebody who wrote it, a place in the order, and whatever that person or that run put in it. A question carries text and the scope it was asked under and nothing else; an answer carries blocks, the sources they rest on, the offers it made, the line the run last reported, and how it ended.

It is mail-derived throughout and is never logged. The text is somebody's own words, the blocks quote their correspondence, the citations name messages in their mailbox, and the scope names what they asked about.

Constructors

AgentMessage(AgentMessageId, AgentMessageAuthor, long, PresentationText?, AgentMessageScope?, IReadOnlyList<PresentationCitation>, IReadOnlyList<PresentationBlock>, IReadOnlyList<AgentProposedAction>, PresentationText?, AgentAnswerOutcome?)

Initializes one turn of a conversation.

Properties

Author

Gets who wrote it.

Blocks

Gets the blocks the answer was composed of, in the order they were composed.

Citations

Gets the sources the blocks rest on, declared once each, and empty where the turn rests on none.

Id

Gets what addresses the message.

Outcome

Gets how the answer ended, and null while it is still being composed or where the turn is not an answer.

ProposedActions

Gets what the answer offered the person, in the order it offered them.

Scope

Gets what the turn was written under, and null before anything in the conversation has stated one.

Status

Gets the line the run last reported, and null where it reported none.

Text

Gets what was written in words, and null for an answer that speaks in blocks alone.

WrittenAt

Gets the place in the conversation it was written at.