@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.
28 lines (24 loc) • 875 B
text/typescript
import { DeepPartial } from 'utility-types';
import { DEFAULT_AGENT_CONFIG } from '@/const/settings';
import { AgentSettingsInstance } from '@/features/AgentSetting';
import { LobeAgentConfig } from '@/types/agent';
export interface AgentState {
activeAgentId?: string;
activeId: string;
agentConfigInitMap: Record<string, boolean>;
agentMap: Record<string, DeepPartial<LobeAgentConfig>>;
agentSettingInstance?: AgentSettingsInstance | null;
defaultAgentConfig: LobeAgentConfig;
isInboxAgentConfigInit: boolean;
showAgentSetting: boolean;
updateAgentChatConfigSignal?: AbortController;
updateAgentConfigSignal?: AbortController;
}
export const initialAgentChatState: AgentState = {
activeId: 'inbox',
agentConfigInitMap: {},
agentMap: {},
defaultAgentConfig: DEFAULT_AGENT_CONFIG,
isInboxAgentConfigInit: false,
showAgentSetting: false,
};