MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / requireUser

Function requireUser

ai/ai.ts:574–576  ·  view source on GitHub ↗
(condition: any, message: string)

Source from the content-addressed store, hash-verified

572
573const requireUser = (condition: any, message: string): void => {
574 if (!condition) throw new UserError(message);
575};
576
577type ProcessingKind = "chat" | "search" | "image" | "video";
578
579const PROCESSING_TEXT: Record<ProcessingKind, string> = {

Callers 15

executeMethod · 0.70
parseProviderTypeMethod · 0.70
parseAddConfigArgsMethod · 0.70
addConfigMethod · 0.70
setStreamMethod · 0.70
setResponsesMethod · 0.70
setProviderTypeMethod · 0.70
deleteConfigMethod · 0.70
executeMethod · 0.70
executeMethod · 0.70
executeMethod · 0.70
executeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected