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.

622 B
Raw Blame
import type { BuiltinInspector } from '@lobechat/types';
import { useTranslation } from 'react-i18next';

import type { GoalSupervisorApiName } from '../supervisor';

const inspector = (api: keyof typeof GoalSupervisorApiName): BuiltinInspector =>
  function SupervisorInspector() {
    const { t } = useTranslation('plugin');
    return t(`builtins.lobe-goal-supervisor.apiName.${api}`);
  };

export const GoalSupervisorInspectors = {
  inspectGoal: inspector('inspectGoal'),
  inspectTask: inspector('inspectTask'),
  readArtifact: inspector('readArtifact'),
  resolveInterruption: inspector('resolveInterruption'),
};