Skip to content

Commit

Permalink
Merge pull request #1636 from crewAIInc/gui/make-it-green
Browse files Browse the repository at this point in the history
Make it green!
  • Loading branch information
gvieira authored Nov 20, 2024
2 parents 94c6226 + 6774bc2 commit fde1ee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/crewai/crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ def kickoff(
self,
inputs: Optional[Dict[str, Any]] = None,
) -> CrewOutput:
for callback in self.before_kickoff_callbacks:
inputs = callback(inputs)
for before_callback in self.before_kickoff_callbacks:
inputs = before_callback(inputs)

"""Starts the crew to work on its assigned tasks."""
self._execution_span = self._telemetry.crew_execution_span(self, inputs)
Expand Down Expand Up @@ -531,8 +531,8 @@ def kickoff(
f"The process '{self.process}' is not implemented yet."
)

for callback in self.after_kickoff_callbacks:
result = callback(result)
for after_callback in self.after_kickoff_callbacks:
result = after_callback(result)

metrics += [agent._token_process.get_summary() for agent in self.agents]

Expand Down

0 comments on commit fde1ee4

Please sign in to comment.