isCompletionPrompt
Stentor API Reference / stentor-models/src / isCompletionPrompt
Function: isCompletionPrompt()
isCompletionPrompt(
prompt):prompt is CompletionPrompt
Defined in: packages/stentor-models/src/Services/LLMService.ts:71
Accepts undefined deliberately: these guards get called on values parsed from JSON or handed
over by a caller, where absent is a normal input rather than a programming error. The body has
always handled it -- the signature now says so.
Parameters​
prompt​
Prompt | undefined
Returns​
prompt is CompletionPrompt