Skip to main content

ContextServices

Stentor API Reference


Stentor API Reference / stentor-models/src / ContextServices

Interface: ContextServices

Defined in: packages/stentor-models/src/Context.ts:28

These we want to make available for custom handlers

Properties​

crmService?​

optional crmService?: CrmService

Defined in: packages/stentor-models/src/Context.ts:32

Service for sending information to a CRM


smsService?​

optional smsService?: SMSService

Defined in: packages/stentor-models/src/Context.ts:36

Service for sending text messages


eventService?​

optional eventService?: ErrorService

Defined in: packages/stentor-models/src/Context.ts:40

Access to the event service for reporting runtime errors.


llmService?​

optional llmService?: LLMService

Defined in: packages/stentor-models/src/Context.ts:48

Generic LLM access, wired by the runtime.

Optional and frequently absent -- a runtime that cannot build one leaves it undefined rather than supplying something that throws on use, so check before calling and have a path that works without it.