Table of Contents

Class AgentConversationEntryJsonContext

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

The one shape a conversation's entry is written into its row as, with the readers and writers generated at compile time.

[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Metadata, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, UseStringEnumConverter = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, Converters = new Type[] { typeof(AgentMessageIdJsonConverter), typeof(StoredEmailIdJsonConverter), typeof(EmailChunkIdJsonConverter), typeof(EmailAddressJsonConverter) })]
[JsonSerializable(typeof(AgentConversationEntry))]
public sealed class AgentConversationEntryJsonContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
AgentConversationEntryJsonContext
Implements
Inherited Members

Remarks

A conversation is durable, so the payload column outlives every process that wrote into it by years rather than by minutes — and a rolling upgrade has one build writing it while another reads it. That makes it a contract rather than an implementation detail, which is why it is declared here instead of being left to whatever options the store happened to have: a property renamed on one side and not the other would be a block that reads back empty rather than a compilation failure.

Source-generated in the same mode and with the same three converters the Discover run's journal uses, so a block or a citation is written here exactly as it is written there. The mode is metadata because the block catalogue, the citation targets, and the entries themselves are all polymorphic and the fast path carries no discriminator.

It is not what a client is handed. The routes serialize the entries they read with the surface's own options, so this shape is between the conversation and its rows and changing it changes no wire form.

Constructors

AgentConversationEntryJsonContext()
AgentConversationEntryJsonContext(JsonSerializerOptions)

Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.

Properties

AgentActionProposed

Defines the source generated JSON serialization contract metadata for a given type.

AgentAnswerEnded

Defines the source generated JSON serialization contract metadata for a given type.

AgentAnswerOutcome

Defines the source generated JSON serialization contract metadata for a given type.

AgentAnswerStarted

Defines the source generated JSON serialization contract metadata for a given type.

AgentBlockComposed

Defines the source generated JSON serialization contract metadata for a given type.

AgentCitationDeclared

Defines the source generated JSON serialization contract metadata for a given type.

AgentConversationCompacted

Defines the source generated JSON serialization contract metadata for a given type.

AgentConversationEntry

Defines the source generated JSON serialization contract metadata for a given type.

AgentEventScheduling

Defines the source generated JSON serialization contract metadata for a given type.

AgentMessageAuthor

Defines the source generated JSON serialization contract metadata for a given type.

AgentMessageId

Defines the source generated JSON serialization contract metadata for a given type.

AgentMessageScope

Defines the source generated JSON serialization contract metadata for a given type.

AgentMessageSending

Defines the source generated JSON serialization contract metadata for a given type.

AgentMessageWritten

Defines the source generated JSON serialization contract metadata for a given type.

AgentModelCharged

Defines the source generated JSON serialization contract metadata for a given type.

AgentProposalResolved

Defines the source generated JSON serialization contract metadata for a given type.

AgentProposalState

Defines the source generated JSON serialization contract metadata for a given type.

AgentProposedAct

Defines the source generated JSON serialization contract metadata for a given type.

AgentResponseSending

Defines the source generated JSON serialization contract metadata for a given type.

AgentScopeKind

Defines the source generated JSON serialization contract metadata for a given type.

AgentStatusReported

Defines the source generated JSON serialization contract metadata for a given type.

AgentTaskRecording

Defines the source generated JSON serialization contract metadata for a given type.

AgentToolAnswered

Defines the source generated JSON serialization contract metadata for a given type.

AgentToolCalled

Defines the source generated JSON serialization contract metadata for a given type.

AnswerBlock

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentAvailability

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentEntry

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentGalleryBlock

Defines the source generated JSON serialization contract metadata for a given type.

AuthoredResponseAct

Defines the source generated JSON serialization contract metadata for a given type.

Boolean

Defines the source generated JSON serialization contract metadata for a given type.

ConflictingClaim

Defines the source generated JSON serialization contract metadata for a given type.

DateOnly

Defines the source generated JSON serialization contract metadata for a given type.

DateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

Double

Defines the source generated JSON serialization contract metadata for a given type.

DraftBlock

Defines the source generated JSON serialization contract metadata for a given type.

DraftDisposition

Defines the source generated JSON serialization contract metadata for a given type.

EmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

EmailChunkId

Defines the source generated JSON serialization contract metadata for a given type.

EmailCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

EventProposalBlock

Defines the source generated JSON serialization contract metadata for a given type.

EvidenceEntry

Defines the source generated JSON serialization contract metadata for a given type.

EvidenceListBlock

Defines the source generated JSON serialization contract metadata for a given type.

FactTableBlock

Defines the source generated JSON serialization contract metadata for a given type.

FactTableCell

Defines the source generated JSON serialization contract metadata for a given type.

FactTableColumn

Defines the source generated JSON serialization contract metadata for a given type.

FactTableRow

Defines the source generated JSON serialization contract metadata for a given type.

FragmentCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

GeneratedSerializerOptions

The source-generated options associated with this context.

Guid

Defines the source generated JSON serialization contract metadata for a given type.

IEnumerablePresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListAttachmentEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListConflictingClaim

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListEmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListEvidenceEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableCell

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableColumn

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableRow

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListInt64

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPersonEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationText

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadCommitment

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadParticipant

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadStatement

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListTimelineEntry

Defines the source generated JSON serialization contract metadata for a given type.

Int32

Defines the source generated JSON serialization contract metadata for a given type.

Int64

Defines the source generated JSON serialization contract metadata for a given type.

NullableDateOnly

Defines the source generated JSON serialization contract metadata for a given type.

NullableDateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

NullableEmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

NullableGuid

Defines the source generated JSON serialization contract metadata for a given type.

NullablePresentationText

Defines the source generated JSON serialization contract metadata for a given type.

NullableStoredEmailId

Defines the source generated JSON serialization contract metadata for a given type.

NullableUnreadableSourceReason

Defines the source generated JSON serialization contract metadata for a given type.

PeopleBlock

Defines the source generated JSON serialization contract metadata for a given type.

PersonEntry

Defines the source generated JSON serialization contract metadata for a given type.

PresentationBlock

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitation

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

PresentationConfidence

Defines the source generated JSON serialization contract metadata for a given type.

PresentationEvidence

Defines the source generated JSON serialization contract metadata for a given type.

PresentationFreshness

Defines the source generated JSON serialization contract metadata for a given type.

PresentationSourceMedium

Defines the source generated JSON serialization contract metadata for a given type.

PresentationStaleness

Defines the source generated JSON serialization contract metadata for a given type.

PresentationSupport

Defines the source generated JSON serialization contract metadata for a given type.

PresentationText

Defines the source generated JSON serialization contract metadata for a given type.

StoredEmailId

Defines the source generated JSON serialization contract metadata for a given type.

String

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionBlock

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionImpact

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionKind

Defines the source generated JSON serialization contract metadata for a given type.

TaskProposalBlock

Defines the source generated JSON serialization contract metadata for a given type.

ThreadCommitment

Defines the source generated JSON serialization contract metadata for a given type.

ThreadParticipant

Defines the source generated JSON serialization contract metadata for a given type.

ThreadStateBlock

Defines the source generated JSON serialization contract metadata for a given type.

ThreadStatement

Defines the source generated JSON serialization contract metadata for a given type.

TimelineBlock

Defines the source generated JSON serialization contract metadata for a given type.

TimelineEntry

Defines the source generated JSON serialization contract metadata for a given type.

UnreadableSourceReason

Defines the source generated JSON serialization contract metadata for a given type.

Methods

GetTypeInfo(Type)

Gets metadata for the specified type.