We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6ee9a commit 8cc785bCopy full SHA for 8cc785b
tinytroupe/agent/tiny_person.py
@@ -265,7 +265,7 @@ def import_fragment(self, path):
265
266
# check the type is "Fragment" and that there's also a "persona" key
267
if fragment.get("type", None) == "Fragment" and fragment.get("persona", None) is not None:
268
- self.include_persona_definitions(fragment)
+ self.include_persona_definitions(fragment["persona"])
269
else:
270
raise ValueError("The imported JSON file must be a valid fragment of a persona configuration.")
271
@@ -1373,4 +1373,4 @@ def clear_agents():
1373
"""
1374
Clears the global list of agents.
1375
1376
- TinyPerson.all_agents = {}
+ TinyPerson.all_agents = {}
0 commit comments