( workspaceId?: string, scope: KnowledgeQueryScope = 'active', signal?: AbortSignal )
| 86 | } |
| 87 | |
| 88 | export async function fetchKnowledgeBases( |
| 89 | workspaceId?: string, |
| 90 | scope: KnowledgeQueryScope = 'active', |
| 91 | signal?: AbortSignal |
| 92 | ): Promise<KnowledgeBaseData[]> { |
| 93 | const result = await requestJson(listKnowledgeBasesContract, { |
| 94 | query: { workspaceId, scope }, |
| 95 | signal, |
| 96 | }) |
| 97 | |
| 98 | return result.data |
| 99 | } |
| 100 | |
| 101 | export async function fetchKnowledgeBase( |
| 102 | knowledgeBaseId: string, |
no test coverage detected