Skip to content

Commit

Permalink
conditional protect agentops use
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Jun 7, 2024
1 parent f2d2804 commit 45655a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/crewai/crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ def kickoff(self, inputs: Optional[Dict[str, Any]] = {}) -> str:
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
Expand Down

0 comments on commit 45655a9

Please sign in to comment.