Skip to content

Commit 7015441

Browse files
committed
fix: use str(state) instead of state.value — Python binding returns string not enum
1 parent a995f9f commit 7015441

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

amplifier_module_loop_basic/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def execute(
103103
CANCEL_REQUESTED,
104104
{
105105
"orchestrator": "loop-basic",
106-
"state": coordinator.cancellation.state.value,
106+
"state": str(coordinator.cancellation.state),
107107
"turn_count": iteration,
108108
},
109109
)
@@ -285,7 +285,7 @@ async def execute(
285285
CANCEL_REQUESTED,
286286
{
287287
"orchestrator": "loop-basic",
288-
"state": coordinator.cancellation.state.value,
288+
"state": str(coordinator.cancellation.state),
289289
"turn_count": iteration,
290290
},
291291
)
@@ -599,7 +599,7 @@ async def execute_single_tool(
599599
CANCEL_REQUESTED,
600600
{
601601
"orchestrator": "loop-basic",
602-
"state": coordinator.cancellation.state.value,
602+
"state": str(coordinator.cancellation.state),
603603
"turn_count": iteration,
604604
},
605605
)
@@ -640,7 +640,7 @@ async def execute_single_tool(
640640
CANCEL_REQUESTED,
641641
{
642642
"orchestrator": "loop-basic",
643-
"state": coordinator.cancellation.state.value,
643+
"state": str(coordinator.cancellation.state),
644644
"turn_count": iteration,
645645
},
646646
)

0 commit comments

Comments
 (0)