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.

1.5 KB
Raw Blame
import { AskUserQuestionInspector } from '@lobechat/builtin-tool-user-interaction/client';
import type { BuiltinInspector } from '@lobechat/types';

import { LobeAgentApiName } from '../../types';
import { AnalyzeMediaInspector } from './AnalyzeMedia';
import { CallSubAgentInspector } from './CallSubAgent';
import { ClearTodosInspector } from './ClearTodos';
import { CreatePlanInspector } from './CreatePlan';
import { CreateTodosInspector } from './CreateTodos';
import { UpdatePlanInspector } from './UpdatePlan';
import { UpdateTodosInspector } from './UpdateTodos';
import { VentInspector } from './Vent';

/**
 * Lobe Agent Inspector Components Registry
 *
 * Inspector components customize the title/header area
 * of tool calls in the conversation UI.
 */
export const LobeAgentInspectors: Record<string, BuiltinInspector> = {
  [LobeAgentApiName.analyzeMedia]: AnalyzeMediaInspector as BuiltinInspector,
  [LobeAgentApiName.askUserQuestion]: AskUserQuestionInspector as BuiltinInspector,
  [LobeAgentApiName.callSubAgent]: CallSubAgentInspector as BuiltinInspector,
  [LobeAgentApiName.clearTodos]: ClearTodosInspector as BuiltinInspector,
  [LobeAgentApiName.createPlan]: CreatePlanInspector as BuiltinInspector,
  [LobeAgentApiName.createTodos]: CreateTodosInspector as BuiltinInspector,
  [LobeAgentApiName.updatePlan]: UpdatePlanInspector as BuiltinInspector,
  [LobeAgentApiName.updateTodos]: UpdateTodosInspector as BuiltinInspector,
  [LobeAgentApiName.vent]: VentInspector as BuiltinInspector,
};