Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantsahai18 authored and github-actions[bot] committed Jan 4, 2025
1 parent 7412ca2 commit e92fb4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions agents-api/agents_api/activities/task_steps/base_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ def _recursive_evaluate(expr, evaluator: SimpleEval):
if activity.in_activity():
evaluate_error = EvaluateError(e, expr, evaluator.names)

variables_accessed = {
{
name: value for name, value in evaluator.names.items() if name in expr
}

activity.logger.error(
f"Error in base_evaluate: {evaluate_error}\n"
)
activity.logger.error(f"Error in base_evaluate: {evaluate_error}\n")
raise evaluate_error from e
elif isinstance(expr, list):
return [_recursive_evaluate(e, evaluator) for e in expr]
Expand Down

0 comments on commit e92fb4d

Please sign in to comment.