File size: 904 Bytes
5da4770
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
export const knowledgeBaseKeys = {
    all: ['knowledge-base'] as const,
    threads: () => [...knowledgeBaseKeys.all, 'threads'] as const,
    thread: (threadId: string) => [...knowledgeBaseKeys.threads(), threadId] as const,
    agents: () => [...knowledgeBaseKeys.all, 'agents'] as const,
    agent: (agentId: string) => [...knowledgeBaseKeys.agents(), agentId] as const,
    entry: (entryId: string) => [...knowledgeBaseKeys.all, 'entry', entryId] as const,
    context: (threadId: string) => [...knowledgeBaseKeys.all, 'context', threadId] as const,
    agentContext: (agentId: string) => [...knowledgeBaseKeys.all, 'agent-context', agentId] as const,
    combinedContext: (threadId: string, agentId?: string) => [...knowledgeBaseKeys.all, 'combined-context', threadId, agentId] as const,
    processingJobs: (agentId: string) => [...knowledgeBaseKeys.all, 'processing-jobs', agentId] as const,
  };