fix: Change storage initialization to None for KnowledgeStorage

This commit is contained in:
ericklima-ca
2024-12-26 21:30:06 -04:00
parent 6cc2f510bf
commit 25aa774d8c
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class BaseFileKnowledgeSource(BaseKnowledgeSource, ABC):
default_factory=list, description="The path to the file"
)
content: Dict[Path, str] = Field(init=False, default_factory=dict)
storage: KnowledgeStorage = Field(default_factory=KnowledgeStorage)
storage: KnowledgeStorage = Field(default=None)
safe_file_paths: List[Path] = Field(default_factory=list)
@field_validator("file_path", "file_paths", mode="before")