MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / getDownloadSourceFile

Function getDownloadSourceFile

ui/src/api/knowledge/document.ts:148–154  ·  view source on GitHub ↗
(
  knowledge_id,
  document_id,
  document_name,
)

Source from the content-addressed store, hash-verified

146 * @param 参数 knowledge_id
147 */
148const getDownloadSourceFile: (knowledge_id: string, document_id: string, document_name: string) => Promise<Result<any>> = (
149 knowledge_id,
150 document_id,
151 document_name,
152) => {
153 return exportFile(document_name, `${prefix.value}/${knowledge_id}/document/${document_id}/download_source_file`, {}, undefined)
154}
155
156const postReplaceSourceFile: (knowledge_id: string, document_id: string, data: any) => Promise<Result<any>> = (
157 knowledge_id,

Callers

nothing calls this directly

Calls 1

exportFileFunction · 0.90

Tested by

no test coverage detected