@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
14 lines (9 loc) • 572 B
text/typescript
import { useAgentStore } from '@/store/agent';
import { agentChatConfigSelectors, agentSelectors } from '@/store/agent/selectors';
export const getAgentConfig = () => agentSelectors.currentAgentConfig(useAgentStore.getState());
export const getAgentChatConfig = () =>
agentChatConfigSelectors.currentChatConfig(useAgentStore.getState());
export const getAgentEnableHistoryCount = () =>
agentChatConfigSelectors.enableHistoryCount(useAgentStore.getState());
export const getAgentKnowledge = () =>
agentSelectors.currentEnabledKnowledge(useAgentStore.getState());