mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-21 22:08:21 +00:00
fixed types
This commit is contained in:
@@ -15,6 +15,7 @@ class JSONKnowledgeSource(BaseFileKnowledgeSource):
|
||||
|
||||
content: Dict[Path, str] = {}
|
||||
for path in paths:
|
||||
path = self.convert_to_path(path)
|
||||
with open(path, "r", encoding="utf-8") as json_file:
|
||||
data = json.load(json_file)
|
||||
content[path] = self._json_to_text(data)
|
||||
|
||||
Reference in New Issue
Block a user