PromptType
Stentor API Reference / stentor-models/src / PromptType
Type Alias: PromptType
PromptType =
"completions"
Defined in: packages/stentor-models/src/Services/LLMService.ts:20
Generic LLM access for custom handlers.
Declared here rather than imported from @xapp/stentor-service-generative-ai because
stentor-models cannot depend on stentor-core -- the same reason CrmService and SMSService
are declared here and implemented there.
The surface is deliberately narrow. stentor-service-generative-ai also offers task-specific
analysis (analyzeLead, analyzeEmail, analyzeTranscript, ...); exposing all of that here
would drag every analysis result type into the models package. Handlers get the generic escape
hatch, and anything richer stays behind the service that owns it.
These declarations are structurally identical to the ones in
stentor-service-generative-ai/src/models, so its implementations satisfy this interface with
no change on that side.