conditional protect agentops use

This commit is contained in:
Braelyn Boynton
2024-06-06 17:58:34 -07:00
parent f2d2804854
commit 45655a956a

View File

@@ -253,8 +253,9 @@ class Crew(BaseModel):
self._set_tasks_callbacks()
i18n = I18N(prompt_file=self.prompt_file)
agentops.set_parent_key("daebe730-f54d-4af5-98df-e6946fb76d13")
agentops.add_tags(["crewai"])
if agentops:
agentops.set_parent_key("daebe730-f54d-4af5-98df-e6946fb76d13")
agentops.add_tags(["crewai"])
for agent in self.agents:
agent.i18n = i18n