mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-22 22:58:13 +00:00
Add new tests
This commit is contained in:
@@ -187,7 +187,6 @@ class BaseAgent(ABC, BaseModel):
|
||||
"""Get the converter class for the agent to create json/pydantic outputs."""
|
||||
pass
|
||||
|
||||
# TODO: HAVE LORENZE REVIEW THIS WITH OTHER AGENTS
|
||||
@abstractmethod
|
||||
def copy(self):
|
||||
"""Create a copy of the agent."""
|
||||
|
||||
@@ -423,7 +423,7 @@ class Crew(BaseModel):
|
||||
|
||||
self._finish_execution(task_output)
|
||||
|
||||
token_usage = self._calculate_usage_metrics()
|
||||
token_usage = self.calculate_usage_metrics()
|
||||
|
||||
# type: ignore # Incompatible return value type (got "tuple[str, Any]", expected "str")
|
||||
return self._format_output(task_output, token_usage)
|
||||
|
||||
Reference in New Issue
Block a user