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.

489 B
Raw Blame
import { GoalReportIdentifier } from '@lobechat/builtin-tool-goal/report';

import { GoalReportTools } from '@/server/services/goal/reportTools';

import type { ServerRuntimeRegistration } from './types';

export const goalReportRuntime: ServerRuntimeRegistration = {
  identifier: GoalReportIdentifier,
  factory: (context) => {
    if (!context.serverDB || !context.userId)
      throw new Error('Goal report database context required');
    return new GoalReportTools(context);
  },
};