Skip to main content

PluginGatewayMessage

@codebolt/plugin-sdk


Interface: PluginGatewayMessage

Defined in: CodeBolt/packages/pluginSdk/src/modules/gateway.ts:19

Properties

PropertyTypeDescriptionDefined in
agentId?stringWhich agent should handle this messageCodeBolt/packages/pluginSdk/src/modules/gateway.ts:29
environmentId?stringOptional environment to run agent inCodeBolt/packages/pluginSdk/src/modules/gateway.ts:31
externalThreadId?stringExternal conversation/thread ID (for per-conversation strategy)CodeBolt/packages/pluginSdk/src/modules/gateway.ts:37
metadata?Record<string, any>Arbitrary metadata (platform name, sender info, attachments, etc.)CodeBolt/packages/pluginSdk/src/modules/gateway.ts:46
replyTo?{ channelId: string; externalThreadId?: string; pluginId?: string; userId?: string; }Reply routing info — pluginId is auto-set by the serverCodeBolt/packages/pluginSdk/src/modules/gateway.ts:39
replyTo.channelIdstring-CodeBolt/packages/pluginSdk/src/modules/gateway.ts:40
replyTo.externalThreadId?string-CodeBolt/packages/pluginSdk/src/modules/gateway.ts:41
replyTo.pluginId?string-CodeBolt/packages/pluginSdk/src/modules/gateway.ts:43
replyTo.userId?string-CodeBolt/packages/pluginSdk/src/modules/gateway.ts:42
source"channel"Always 'channel' for channel pluginsCodeBolt/packages/pluginSdk/src/modules/gateway.ts:21
sourceIdstringIdentifier for this channel source (e.g., 'plugin-telegram-channel')CodeBolt/packages/pluginSdk/src/modules/gateway.ts:23
textstringThe message text from the platform userCodeBolt/packages/pluginSdk/src/modules/gateway.ts:33
threadId?stringPre-resolved threadId (for 'existing' strategy)CodeBolt/packages/pluginSdk/src/modules/gateway.ts:27
threadStrategy"single" | "per-user" | "per-conversation" | "per-message" | "existing"How to resolve the threadCodeBolt/packages/pluginSdk/src/modules/gateway.ts:25
timestamp?stringTimestamp of the original messageCodeBolt/packages/pluginSdk/src/modules/gateway.ts:48
userId?stringExternal user identifier (for per-user strategy)CodeBolt/packages/pluginSdk/src/modules/gateway.ts:35