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 type { BuiltinToolManifest } from '@lobechat/types';

import { ACTIVATE_TOOLS_AUDIT } from './interventionAudit';
import { systemPrompt } from './systemRole';
import { ActivatorApiName, LobeActivatorIdentifier } from './types';

export const LobeActivatorManifest: BuiltinToolManifest = {
  api: [
    {
      description:
        'Activate tools from the <available_tools> list so their full API schemas become available for use. Call this before using any tool that is not yet activated. You can activate multiple tools at once.',
      humanIntervention: {
        dynamic: { default: 'never', policy: 'required', type: ACTIVATE_TOOLS_AUDIT },
      },
      name: ActivatorApiName.activateTools,
      parameters: {
        properties: {
          identifiers: {
            description:
              'Array of tool identifiers to activate. Use the identifiers from the <available_tools> list.',
            items: {
              type: 'string',
            },
            type: 'array',
          },
          reason: {
            description:
              'A concise explanation shown to the user for why these tools need to be activated.',
            type: 'string',
          },
        },
        required: ['identifiers', 'reason'],
        type: 'object',
      },
    },
  ],
  identifier: LobeActivatorIdentifier,
  meta: {
    avatar: '🔧',
    description: 'Discover and activate tools',
    title: 'Tools Activator',
  },
  systemRole: systemPrompt,
  type: 'builtin',
};