Table of Contents

Constructor ChatMessage

Namespace
MailFathom.Application.Chat
Assembly
MailFathom.Application.dll

ChatMessage(ChatRole, string, ChatImage?)

One turn of a conversation: who it came from, what it said, and at most one picture it said it about.

public ChatMessage(ChatRole Role, string Text, ChatImage? Image = null)

Parameters

Role ChatRole

Who the turn came from.

Text string

What the turn said, which is never blank even where the turn is mostly its picture.

Image ChatImage

The picture the turn carries, or null for a turn of text alone.

Remarks

Text always, and a picture where a caller has one. An image arrived with its own bounds and its own privacy question — the octet ceiling one request may carry, and the fact that no content scan applies to a photograph — and both are answered where they belong: the ceiling on the plan the adapter runs on, the disclosure on ChatImage. An audio clip and a tool result remain capabilities rather than shapes this type is missing, and each waits for the caller that needs it.

One picture rather than several, because the caller this exists for describes one attachment per call and a turn carrying a set would need to say what the model is being asked about the set. A second image is a second call.

The text of a turn is untrusted and frequently personal: a question a person typed, and passages of somebody's mail. It is never logged, never traced, and never carried into a failure, and the image is treated the same way.