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.9 KB
Raw Blame
import { BRANDING_INBOX_TITLE, BRANDING_LOGO_URL } from '@lobechat/business-const';
import type { MetaData } from '@lobechat/types';

export const DEFAULT_AVATAR = '/avatars/agent-default.png';
export const DEFAULT_USER_AVATAR = 'πŸ˜€';
export const DEFAULT_SUPERVISOR_AVATAR = 'πŸŽ™οΈ';
export const DEFAULT_SUPERVISOR_ID = 'supervisor';
export const DEFAULT_BACKGROUND_COLOR = undefined;
export const DEFAULT_AGENT_META: MetaData = {};
export const DEFAULT_INBOX_TITLE = BRANDING_INBOX_TITLE;

/**
 * The assistant's name as a built-in prompt spells it.
 *
 * Upstream prompts call the default assistant by shorter forms than the UI
 * title ("Lobe", "LobeAI"). Under the default title those stay exactly as they
 * are; a deployment that renamed the assistant gets its own title everywhere,
 * so the model never introduces itself by the upstream name.
 */
export const promptAssistantName = (upstreamForm: string): string =>
  (BRANDING_INBOX_TITLE as string) === 'Lobe AI' ? upstreamForm : BRANDING_INBOX_TITLE;
export const DEFAULT_INBOX_AVATAR = BRANDING_LOGO_URL || '/avatars/lobe-ai.png';
export const DEFAULT_USER_AVATAR_URL = BRANDING_LOGO_URL || '/app-icons/icon-192x192.png';

/**
 * Avatars for the remaining built-in agents.
 *
 * `/avatars/*.png` are drawings of the LobeHub mascot, and the agents that use
 * them referenced those paths as literals β€” so they kept the upstream character
 * on a distribution that had rebranded everything else, including the agents
 * sitting next to them in the same picker. Routing them through the same slot as
 * DEFAULT_INBOX_AVATAR is what makes the branding complete rather than partial.
 *
 * Upstream is unaffected: BRANDING_LOGO_URL is empty there, so the fallback
 * keeps each agent's own artwork.
 */
export const DEFAULT_AGENT_BUILDER_AVATAR = BRANDING_LOGO_URL || '/avatars/agent-builder.png';
export const DEFAULT_PAGE_AGENT_AVATAR = BRANDING_LOGO_URL || '/avatars/doc-copilot.png';