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
idAgentMessageIdWhat addresses the message.
authorAgentMessageAuthorWho wrote it.
writtenAtlongThe place in the conversation it was written at.
textPresentationText?What was written in words, and null for an answer that speaks in blocks alone.
scopeAgentMessageScopeWhat the turn was written under, and null before anything in the conversation has stated one.
citationsIReadOnlyList<PresentationCitation>The sources the blocks rest on, declared once each.
blocksIReadOnlyList<PresentationBlock>The blocks the answer was composed of, in the order they were composed.
proposedActionsIReadOnlyList<AgentProposedAction>What the answer offered the person, in the order it offered them.
statusPresentationText?The line the run last reported, and null where it reported none.
outcomeAgentAnswerOutcome?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, orproposedActionsis null.