Skip to content

Commit

Permalink
hitfix
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 committed Nov 11, 2024
1 parent e3b6a23 commit 8b9cd2f
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 8b9cd2f

Please sign in to comment.