Method AddMailSearchPhraseAgent
- Namespace
- MailFathom.AI
- Assembly
- MailFathom.AI.dll
AddMailSearchPhraseAgent(IServiceCollection)
Registers the agent that reads a typed sentence into the filters and criteria a search is made of.
public static IServiceCollection AddMailSearchPhraseAgent(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection to add to.
Returns
- IServiceCollection
The same service collection, so registration reads as one expression.
Remarks
Called only where the deployment declared a chat endpoint and left this on, so the port's absence is the answer a search screen gets: it offers the plain word search rather than a field promising a description over a deployment that cannot read one. That is why nothing stands in for the reader when this is not called — a stand-in answering "not read" would have every caller ask a provider-shaped question of a deployment that has no provider.
Scoped, because one request is one sentence: the ledger the call is charged to, the credential it resolves, and the transport it opens all belong to that request.
Exceptions
- ArgumentNullException
Thrown when
servicesis null.