Table of Contents

Constructor AgentMessage

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

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

Initializes one turn of a conversation.

public AgentMessage(AgentMessageId id, AgentMessageAuthor author, long writtenAt, PresentationText? text, AgentMessageScope? scope, IReadOnlyList<PresentationCitation> citations, IReadOnlyList<PresentationBlock> blocks, IReadOnlyList<AgentProposedAction> proposedActions, PresentationText? status, AgentAnswerOutcome? outcome)

Parameters

id AgentMessageId

What addresses the message.

author AgentMessageAuthor

Who wrote it.

writtenAt long

The place in the conversation it was written at.

text PresentationText?

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

scope AgentMessageScope

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

citations IReadOnlyList<PresentationCitation>

The sources the blocks rest on, declared once each.

blocks IReadOnlyList<PresentationBlock>

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

proposedActions IReadOnlyList<AgentProposedAction>

What the answer offered the person, in the order it offered them.

status PresentationText?

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

outcome AgentAnswerOutcome?

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

Exceptions

ArgumentNullException

Thrown when citations, blocks, or proposedActions is null.