Files
crewAI/lib
Devin AI 615f6ad9d6 fix: handle empty documents list in KnowledgeStorage.save() and asave()
Fixes #4277

When KnowledgeStorage.save() or asave() is called with an empty documents
list, the method now returns early instead of propagating a low-level
ValueError from ChromaDB's upsert operation.

This is a valid edge case that can occur in real-world workflows (e.g.,
after filtering, retrieval failures, or conditional logic), and should
be handled gracefully as a no-op.

Co-Authored-By: João <joao@crewai.com>
2026-01-25 13:04:47 +00:00
..