Skip to content

Commit

Permalink
fix(agents-api): adjust $ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-mtos committed Jan 30, 2025
1 parent 89ceeb2 commit e2600c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents-api/agents_api/activities/task_steps/base_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __init__(self, error, expression, values):
def _recursive_evaluate(expr, evaluator: SimpleEval):
if isinstance(expr, str):
try:
if isinstance(expr, str) and expr.startswith("$"):
expr = expr[1:].strip()
if isinstance(expr, str) and expr.startswith("$ "):
expr = expr[2:].strip()
else:
return expr
return evaluator.eval(expr)
Expand Down

0 comments on commit e2600c6

Please sign in to comment.