🤯 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 { type KnowledgeItem } from '@lobechat/types';
import { createReplicaState, type ReplicaState } from '@/libs/replica';
export interface KnowledgeSliceState {
/** Local-first bookkeeping for `agentKnowledgeMap`. */
agentKnowledgeListReplica: ReplicaState<KnowledgeItem[]>;
/** Files + knowledge bases per visibility surface (`agentKnowledgeMap[<agentId>[:<visibility>]]`). */
agentKnowledgeMap: Record<string, KnowledgeItem[]>;
}
export const initialKnowledgeSliceState: KnowledgeSliceState = {
agentKnowledgeMap: {},
agentKnowledgeListReplica: createReplicaState(),
};