Skip to content

Commit

Permalink
fixing mock_agent_ops_provider
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Aug 10, 2024
1 parent 82b1db1 commit 94b52cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/crewai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
from crewai.utilities.token_counter_callback import TokenCalcHandler
from crewai.utilities.training_handler import CrewTrainingHandler

def mock_agent_ops_provider():

def mock_agent_ops_provider(*args, **kwargs):
def track_agent():
def noop(f):
return f

return noop

return track_agent


agentops = None

if os.environ.get("AGENTOPS_API_KEY"):
Expand Down
5 changes: 4 additions & 1 deletion src/crewai/utilities/evaluators/task_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
from crewai.utilities import Converter
from crewai.utilities.pydantic_schema_parser import PydanticSchemaParser

def mock_agent_ops_provider():

def mock_agent_ops_provider(*args, **kwargs):
def track_agent():
def noop(f):
return f

return noop

return track_agent


agentops = None

if os.environ.get("AGENTOPS_API_KEY"):
Expand Down

0 comments on commit 94b52cf

Please sign in to comment.