mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
Add a "Create or Update" (upsert) document capability that finds an existing document by ID or filename, deletes it if found, then creates a new document and queues re-processing. Includes new tool, API route, block wiring, and typed interfaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
1.4 KiB
TypeScript
32 lines
1.4 KiB
TypeScript
import { knowledgeCreateDocumentTool } from '@/tools/knowledge/create_document'
|
|
import { knowledgeDeleteChunkTool } from '@/tools/knowledge/delete_chunk'
|
|
import { knowledgeDeleteDocumentTool } from '@/tools/knowledge/delete_document'
|
|
import { knowledgeGetConnectorTool } from '@/tools/knowledge/get_connector'
|
|
import { knowledgeGetDocumentTool } from '@/tools/knowledge/get_document'
|
|
import { knowledgeListChunksTool } from '@/tools/knowledge/list_chunks'
|
|
import { knowledgeListConnectorsTool } from '@/tools/knowledge/list_connectors'
|
|
import { knowledgeListDocumentsTool } from '@/tools/knowledge/list_documents'
|
|
import { knowledgeListTagsTool } from '@/tools/knowledge/list_tags'
|
|
import { knowledgeSearchTool } from '@/tools/knowledge/search'
|
|
import { knowledgeTriggerSyncTool } from '@/tools/knowledge/trigger_sync'
|
|
import { knowledgeUpdateChunkTool } from '@/tools/knowledge/update_chunk'
|
|
import { knowledgeUploadChunkTool } from '@/tools/knowledge/upload_chunk'
|
|
import { knowledgeUpsertDocumentTool } from '@/tools/knowledge/upsert_document'
|
|
|
|
export {
|
|
knowledgeSearchTool,
|
|
knowledgeUploadChunkTool,
|
|
knowledgeCreateDocumentTool,
|
|
knowledgeListTagsTool,
|
|
knowledgeListDocumentsTool,
|
|
knowledgeDeleteDocumentTool,
|
|
knowledgeGetDocumentTool,
|
|
knowledgeListChunksTool,
|
|
knowledgeUpdateChunkTool,
|
|
knowledgeDeleteChunkTool,
|
|
knowledgeListConnectorsTool,
|
|
knowledgeGetConnectorTool,
|
|
knowledgeTriggerSyncTool,
|
|
knowledgeUpsertDocumentTool,
|
|
}
|