n8n
Version:
n8n Workflow Automation Tool
13 lines (12 loc) • 824 B
TypeScript
import type { Thread } from 'chat';
import type { BridgeExecutionContext, BridgeMessageContextParams, BridgeResumeExecutionContext, PlatformAgentContext } from '../agent-chat-integration';
import type { ChatInstance } from '../chat-integration.service';
export declare function getSlackPlatformAgentContext(chat: ChatInstance): PlatformAgentContext;
export declare function prepareSlackInboundText(text: string, context: PlatformAgentContext): string;
export declare function createSlackBridgeExecutionContext(params: BridgeMessageContextParams): Promise<BridgeExecutionContext>;
export declare function createSlackResumeExecutionContext(params: {
chat: ChatInstance;
thread: Thread<unknown, unknown>;
logger: BridgeMessageContextParams['logger'];
agentId: string;
}): Promise<BridgeResumeExecutionContext>;