Class AgentConversation
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
One conversation between a person and this deployment's agent: what it is called, and every turn of it in order.
public sealed record AgentConversation : IEquatable<AgentConversation>
- Inheritance
-
AgentConversation
- Implements
- Inherited Members
Remarks
It is native to this deployment and stored beside everything else, in the same database as the mail it answers about. It is per person, and it is durable: a conversation is not a session, and nothing here is cleared by a restart, a reconnect, or the replica that was composing an answer going away.
This is a reading rather than the record. What the deployment holds is the ordered entries a conversation was written as, one per thing that happened, and this is what those entries say when they are read together: the turns in order, each with its blocks, its sources, and its offers. Composing it changes nothing and decides nothing — the state of an offer is whatever the newest entry answering it said, and a reading taken twice over the same entries is the same reading.
It is sensitive personal data throughout, by the same default every AI derivation in this product carries: a question is somebody's own words, an answer quotes their correspondence, and a scope names what they asked about. It reaches no log, no span attribute, no metric, and no failure message; it goes when the person does, through the cascade from their record; and a conversation the person deletes takes everything it held with it.
Properties
- Id
Gets what addresses the conversation.
- Messages
Gets every turn, in the order they were written.
- StartedAt
Gets when the conversation was started, in UTC.
Methods
- Compose(AgentConversationId, string?, DateTimeOffset, IReadOnlyList<AgentConversationEntry>)
Reads a conversation out of the entries it was written as.