Table of Contents

Class ChatEndpoint

Namespace
MailFathom.AI.Chat
Assembly
MailFathom.AI.dll

Where a chat request is sent and what it is routed to.

public sealed record ChatEndpoint : IEquatable<ChatEndpoint>
Inheritance
ChatEndpoint
Implements
Inherited Members

Remarks

The alias exists because the other two members are an address and a routing name, and an address may not be written down: it identifies a tenant and a resource, so a failure that named one would put it in every log line. The alias is a name the operator chose, which is exactly what ADR 0003 permits a message to carry. It is unique across every AI endpoint the deployment declares, embedding endpoints included, because a credential, a circuit, and a log line are all keyed by it.

There is no vendor identity beside the routed name, and that is the difference from an embedding endpoint rather than an omission. A vector is stored and later compared against other vectors, so which model produced it has to be recorded and proved; an answer is produced, presented, and gone, so nothing downstream ever has to ask which model wrote it.

What the published name adds is not that identity either. It is the operator's own statement of what a person should be told answered them — gpt-4o while the request routes to prod-eu-4o-2 — because the routed name is a resource name that can carry a tenant, a project, or an environment in it, and ADR 0022 refuses to publish that. Nothing reads it but what a client is shown, and empty means a run names the alias alone.

The API belongs here rather than beside the generation parameters because it is part of where a request goes: the two surfaces are two paths under one address, reached with one credential over one transport. A deployment that has to move to the other one is correcting how its endpoint is reached, not how its model is asked to answer.

Sticky sessions belong here for the same reason: they decide which of a gateway's upstream providers a request is routed to, not how the model answers it.

Constructors

ChatEndpoint(string, Uri?, string, ChatProviderApi, string, bool)

Where a chat request is sent and what it is routed to.

Properties

Address

The base address requests are sent to, or null for the provider's own default.

Alias

The deployment's own name for this endpoint, which is what a log, a metric, a resilience circuit, and a failure message call it.

Api

Which of the provider's two request APIs a call is conducted through.

PublishedModelName

The model name the operator declared for publication to a client, and empty where they declared none.

RoutedModelName

What is sent as the model of a request, which for a cloud deployment is the deployment's name rather than the vendor's model identifier.

SendsStickySessions

Gets whether a request carries its session: the model declared sticky sessions and is reached through OpenRouter.

StickySessions

Whether a caller that holds a session asks the gateway to keep that session's requests on one upstream provider.