🤯 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 { DEFAULT_AGENT_META } from '@/const/meta';
import { DEFAULT_AGENT_CHAT_CONFIG, DEFAULT_AGENT_CONFIG } from '@/const/settings';
import { type LobeAgentChatConfig } from '@/types/agent';
import { merge } from '@/utils/merge';
import { type Store } from './action';
const chatConfig = (s: Store): LobeAgentChatConfig =>
s.config.chatConfig || DEFAULT_AGENT_CHAT_CONFIG;
const currentAgentConfig = (s: Store) => merge(DEFAULT_AGENT_CONFIG, s.config);
const currentChatConfig = (s: Store) => merge(DEFAULT_AGENT_CHAT_CONFIG, s.config.chatConfig);
const currentMetaConfig = (s: Store) => merge(DEFAULT_AGENT_META, s.meta);
export const DEFAULT_OPENING_QUESTIONS: string[] = [];
export const selectors = {
chatConfig,
currentAgentConfig,
currentChatConfig,
currentMetaConfig,
openingMessage: (s: Store) => s.config.openingMessage,
openingQuestions: (s: Store) => s.config.openingQuestions || DEFAULT_OPENING_QUESTIONS,
};