mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Merge pull request #1636 from crewAIInc/gui/make-it-green
Make it green!
This commit is contained in:
@@ -486,8 +486,8 @@ class Crew(BaseModel):
|
|||||||
self,
|
self,
|
||||||
inputs: Optional[Dict[str, Any]] = None,
|
inputs: Optional[Dict[str, Any]] = None,
|
||||||
) -> CrewOutput:
|
) -> CrewOutput:
|
||||||
for callback in self.before_kickoff_callbacks:
|
for before_callback in self.before_kickoff_callbacks:
|
||||||
inputs = callback(inputs)
|
inputs = before_callback(inputs)
|
||||||
|
|
||||||
"""Starts the crew to work on its assigned tasks."""
|
"""Starts the crew to work on its assigned tasks."""
|
||||||
self._execution_span = self._telemetry.crew_execution_span(self, inputs)
|
self._execution_span = self._telemetry.crew_execution_span(self, inputs)
|
||||||
@@ -531,8 +531,8 @@ class Crew(BaseModel):
|
|||||||
f"The process '{self.process}' is not implemented yet."
|
f"The process '{self.process}' is not implemented yet."
|
||||||
)
|
)
|
||||||
|
|
||||||
for callback in self.after_kickoff_callbacks:
|
for after_callback in self.after_kickoff_callbacks:
|
||||||
result = callback(result)
|
result = after_callback(result)
|
||||||
|
|
||||||
metrics += [agent._token_process.get_summary() for agent in self.agents]
|
metrics += [agent._token_process.get_summary() for agent in self.agents]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user