optional parent key

This commit is contained in:
Braelyn Boynton
2024-04-19 19:04:21 -07:00
parent 7f8573e6cb
commit 7725e7c52e

View File

@@ -243,7 +243,8 @@ class Crew(BaseModel):
self._set_tasks_callbacks()
i18n = I18N(language=self.language, language_file=self.language_file)
agentops.set_parent_key("daebe730-f54d-4af5-98df-e6946fb76d13")
if agentops:
agentops.set_parent_key("daebe730-f54d-4af5-98df-e6946fb76d13")
for agent in self.agents:
agent.i18n = i18n