Skip to content

Commit

Permalink
Merge pull request #59 from qbc2016/dev_msg_fix
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
rayrayraykk authored Nov 11, 2024
2 parents 98f147d + 8b9cd2f commit e32c152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/agentscope/studio/tools/condition_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def eval_condition_operator(
) -> bool:
"""Eval condition operator only for Msg content or string"""
if isinstance(actual_value, Msg):
actual_value = actual_value.get("content", "")
if hasattr(actual_value, "content"):
actual_value = actual_value.content

operator_funcs = {
"contains": lambda: target_value in actual_value,
Expand Down

0 comments on commit e32c152

Please sign in to comment.