Skip to content

🤯 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.

516 B
Raw Blame
import { createReplicaState, type ReplicaState } from '@/libs/replica';

import type { EvalConversationTopic } from './projection';

export interface ConversationSliceState {
  /** Picker results, keyed by `conversationPickerKey`. */
  conversationTopicMap: Record<string, EvalConversationTopic[]>;
  conversationTopicReplica: ReplicaState<EvalConversationTopic[]>;
}

export const conversationInitialState: ConversationSliceState = {
  conversationTopicMap: {},
  conversationTopicReplica: createReplicaState(),
};