Table of Contents

Method AddCalendarEventExtractionAgent

Namespace
MailFathom.AI
Assembly
MailFathom.AI.dll

AddCalendarEventExtractionAgent(IServiceCollection, bool)

Registers the one way text becomes calendar events, in whichever of its two states the deployment is in.

public static IServiceCollection AddCalendarEventExtractionAgent(this IServiceCollection services, bool isActivated)

Parameters

services IServiceCollection

The service collection to add to.

isActivated bool

Whether the deployment declared a chat endpoint and asked for text to be read into events.

Returns

IServiceCollection

The same service collection, so registration reads as one expression.

Remarks

Registered on the same terms as enrichment beside it, and for the same reason: both of this port's callers need a reason rather than an absence — the arrival pass records why a message proposed nothing, and the new-event screen draws a form somebody fills in themselves rather than a field that fails.

One registration serves both halves, because they are one reading put to two inputs. Which of the two states is registered is decided once, at composition, so an instance that did not ask for this never resolves a chat client and never composes a turn out of somebody's mail or out of what they typed.

Exceptions

ArgumentNullException

Thrown when services is null.