Table of Contents

Constructor AgentAnswering

Namespace
MailFathom.Application.Agent.Answering
Assembly
MailFathom.Application.dll

AgentAnswering(IAgentConversationStore, IAgentAnswerComposer?, IAgentConversationSummarizer?, AgentContextBudget, IMailAnsweringSpendLedger, ClientSignals, IUserLanguages, TimeProvider)

Initializes the use case.

public AgentAnswering(IAgentConversationStore store, IAgentAnswerComposer? composer, IAgentConversationSummarizer? summarizer, AgentContextBudget contextBudget, IMailAnsweringSpendLedger spendLedger, ClientSignals signals, IUserLanguages languages, TimeProvider timeProvider)

Parameters

store IAgentConversationStore

Where the conversation is held.

composer IAgentAnswerComposer

Composes the answer, or null on a deployment that declared no chat endpoint, where every run ends as failed before anything is spent.

summarizer IAgentConversationSummarizer

Summarises a conversation that outgrew the budget, or null where no chat endpoint was declared.

contextBudget AgentContextBudget

What one turn may send before its earlier part is compacted.

spendLedger IMailAnsweringSpendLedger

Admits the run against the deployment's period.

signals ClientSignals

Announces each write.

languages IUserLanguages

Resolves the person's language.

timeProvider TimeProvider

Stamps each write and measures the run's ceiling on time.

Exceptions

ArgumentNullException

Thrown when a required collaborator is null.