Files
sim/apps/sim/tools/knowledge/index.ts
Waleed Latif 8bf63fe667 feat(knowledge): add upsert document operation to Knowledge block
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>
2026-03-17 17:08:10 -07:00

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,
}