🤯 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 { VerifyToolIdentifier } from '@lobechat/builtin-tool-verify';
import { DEFAULT_PROVIDER } from '@lobechat/business-const';
import { DEFAULT_INBOX_AVATAR, DEFAULT_MODEL } from '@lobechat/const';
import type { BuiltinAgentDefinition } from '../../types';
import { BUILTIN_AGENT_SLUGS } from '../../types';
import { systemRoleTemplate } from './systemRole';
export const VERIFY_AGENT: BuiltinAgentDefinition = {
avatar: DEFAULT_INBOX_AVATAR,
persist: {
// Custom tool mode: the verifier's toolset is EXACTLY its declared plugins
// (its writeback tool + any investigation tools the run injects), with no
// default agent toolset (web/sandbox/skills/always-on) so it judges and
// submits instead of wandering off. `enableAgentMode: false` keeps the
// chat-style minimal injectors (no skill discovery / agent-management).
// Search off for the same reason.
chatConfig: {
enableAgentMode: false,
searchMode: 'off',
toolMode: 'custom',
},
model: DEFAULT_MODEL,
provider: DEFAULT_PROVIDER,
},
runtime: (ctx) => ({
// Only the verify-result tool — plus any investigation tools the run injects
// (e.g. file/search tools). No document/plan tools by default.
plugins: [VerifyToolIdentifier, ...(ctx.plugins || [])],
systemRole: systemRoleTemplate,
}),
slug: BUILTIN_AGENT_SLUGS.verifyAgent,
};