Spaces:
Running
Running
fix: await coroutine
Browse files- src/agent/runner.py +1 -1
src/agent/runner.py
CHANGED
@@ -37,7 +37,7 @@ async def process_step(
|
|
37 |
assert choice_text, "choice_text is required"
|
38 |
graph_state.choice_text = choice_text
|
39 |
|
40 |
-
final_state = with_retries(
|
41 |
|
42 |
user_state: UserState = await get_user_state(user_hash)
|
43 |
response: Dict = {}
|
|
|
37 |
assert choice_text, "choice_text is required"
|
38 |
graph_state.choice_text = choice_text
|
39 |
|
40 |
+
final_state = await with_retries(lambda: llm_game_graph.ainvoke(asdict(graph_state)))
|
41 |
|
42 |
user_state: UserState = await get_user_state(user_hash)
|
43 |
response: Dict = {}
|