Table of Contents

Interface IAgentAnswerComposer

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

Composes the Agent's answer to one question, writing each part into the journal as it is ready.

public interface IAgentAnswerComposer

Remarks

The seam between the use case and whatever composes an agent. What crosses it is the brief and the journal; no model, no tool, and no provider type does. An implementation reads what the person's grant lets it read, and answers every act with a proposal written through ProposeAsync(PresentationBlock, AgentProposedAct, CancellationToken) rather than by performing it.

It returns once it has said everything and never ends the answer itself: the ending is the use case's, which is what lets a failure, a stop, and a completion all be recorded by one owner. What it returns is what a completed ending carries — the questions the agent suggests asking next — so they are recorded only for an answer that completed.

Methods

ComposeAsync(AgentAnswerBrief, AgentAnswerJournal, CancellationToken)

Composes the answer.