mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
linter fix
This commit is contained in:
@@ -305,7 +305,7 @@ class AgentReasoning:
|
|||||||
try:
|
try:
|
||||||
backstory = getattr(self.agent, "backstory", "No backstory provided")
|
backstory = getattr(self.agent, "backstory", "No backstory provided")
|
||||||
return backstory
|
return backstory
|
||||||
except Exception as e:
|
except Exception:
|
||||||
return "No backstory provided"
|
return "No backstory provided"
|
||||||
|
|
||||||
def __create_reasoning_prompt(self) -> str:
|
def __create_reasoning_prompt(self) -> str:
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ def patch_rpm_controller():
|
|||||||
from crewai.utilities.rpm_controller import RPMController
|
from crewai.utilities.rpm_controller import RPMController
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
original_reset_request_count = RPMController._reset_request_count
|
RPMController._reset_request_count
|
||||||
|
|
||||||
def mock_reset_request_count(self):
|
def mock_reset_request_count(self):
|
||||||
"""Mock that prevents the recurring timer from being set up."""
|
"""Mock that prevents the recurring timer from being set up."""
|
||||||
|
|||||||
Reference in New Issue
Block a user