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.2 KB
Raw Blame
import { UserInteractionIdentifier } from '@lobechat/builtin-tool-user-interaction';
import { DEFAULT_ONBOARDING_MODEL, DEFAULT_ONBOARDING_PROVIDER } from '@lobechat/business-const';
import { DEFAULT_INBOX_AVATAR } from '@lobechat/const';

import type { BuiltinAgentDefinition } from '../../types';
import { BUILTIN_AGENT_SLUGS } from '../../types';
import { createSystemRole } from './systemRole';

/** Must match `WebOnboardingIdentifier` in `packages/builtin-tool-web-onboarding/src/types.ts`. */
const WebOnboardingIdentifier = 'lobe-web-onboarding';

export const WEB_ONBOARDING: BuiltinAgentDefinition = {
  avatar: DEFAULT_INBOX_AVATAR,
  persist: {
    model: DEFAULT_ONBOARDING_MODEL,
    provider: DEFAULT_ONBOARDING_PROVIDER,
  },
  runtime: (ctx) => ({
    agencyConfig: {
      executionTarget: 'none',
    },
    chatConfig: {
      memory: {
        enabled: false,
      },
      searchMode: 'off',
      skillActivateMode: 'manual',
      toolMode: 'custom',
    },
    plugins: [WebOnboardingIdentifier, UserInteractionIdentifier, ...(ctx.plugins || [])],
    systemRole: createSystemRole(ctx.userLocale, { isDev: ctx.isDev }),
  }),
  slug: BUILTIN_AGENT_SLUGS.webOnboarding,
};