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
storeIAgentConversationStoreWhere the conversation is held.
composerIAgentAnswerComposerComposes the answer, or null on a deployment that declared no chat endpoint, where every run ends as failed before anything is spent.
summarizerIAgentConversationSummarizerSummarises a conversation that outgrew the budget, or null where no chat endpoint was declared.
contextBudgetAgentContextBudgetWhat one turn may send before its earlier part is compacted.
spendLedgerIMailAnsweringSpendLedgerAdmits the run against the deployment's period.
signalsClientSignalsAnnounces each write.
languagesIUserLanguagesResolves the person's language.
timeProviderTimeProviderStamps each write and measures the run's ceiling on time.
Exceptions
- ArgumentNullException
Thrown when a required collaborator is null.