fix(kb): removed filename constraint from knowledgebase doc names (#1527)

This commit is contained in:
Waleed
2025-10-01 20:39:56 -07:00
committed by GitHub
parent 4adbae03e7
commit dc6052578d

View File

@@ -82,9 +82,6 @@ export const knowledgeCreateDocumentTool: ToolConfig<any, KnowledgeCreateDocumen
if (documentName.length > 255) {
throw new Error('Document name must be 255 characters or less')
}
if (/[<>:"/\\|?*]/.test(documentName)) {
throw new Error('Document name contains invalid characters. Avoid: < > : " / \\ | ? *')
}
if (!textContent || textContent.length < 1) {
throw new Error('Document content cannot be empty')
}