MCPcopy Index your code
hub / github.com/xerrors/Yuxi / getWorkspaceKnowledgeTree

Function getWorkspaceKnowledgeTree

web/src/apis/workspace_api.js:23–31  ·  view source on GitHub ↗
(
  kbId,
  parentId = null,
  recursive = false,
  filesOnly = false
)

Source from the content-addressed store, hash-verified

21}
22
23export const getWorkspaceKnowledgeTree = (
24 kbId,
25 parentId = null,
26 recursive = false,
27 filesOnly = false
28) => {
29 const query = buildQuery({ kb_id: kbId, parent_id: parentId, recursive, files_only: filesOnly })
30 return apiGet(`/api/workspace/knowledge/tree?${query}`)
31}
32
33export const getWorkspaceKnowledgeFileContent = (kbId, fileId, variant = 'parsed') => {
34 const query = buildQuery({ kb_id: kbId, file_id: fileId, variant })

Callers

nothing calls this directly

Calls 2

apiGetFunction · 0.90
buildQueryFunction · 0.70

Tested by

no test coverage detected