🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { UserInteractionIdentifier } from '@lobechat/builtin-tool-user-interaction';
import { DEFAULT_INBOX_AVATAR } from '@lobechat/const';
import type { BuiltinAgentDefinition } from '../../types';
import { BUILTIN_AGENT_SLUGS } from '../../types';
import { createSystemRole } from './systemRole';
/**
* Inbox Agent - the default assistant agent for general conversations
*
* Note: model and provider are intentionally undefined to use user's default settings
*/
export const INBOX: BuiltinAgentDefinition = {
avatar: DEFAULT_INBOX_AVATAR,
runtime: (ctx) => ({
plugins: [UserInteractionIdentifier, ...(ctx.plugins || [])],
// A user-customized prompt wins; the runtime one is only the default.
systemRole:
ctx.storedSystemRole || createSystemRole({ name: ctx.agentName, title: ctx.agentTitle }),
}),
slug: BUILTIN_AGENT_SLUGS.inbox,
};