Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

421 B
Raw Blame
import { AttachmentsExecutionRuntime } from '@lobechat/builtin-tool-attachments/executionRuntime';
import { AttachmentsExecutor } from '@lobechat/builtin-tool-attachments/executor';

import { ragService } from '@/services/rag';

export const attachmentsExecutor = new AttachmentsExecutor(
  new AttachmentsExecutionRuntime({
    getFileContents: (fileIds, signal) => ragService.getFileContents(fileIds, signal),
  }),
);