gsavin commited on
Commit
f8bbabf
·
1 Parent(s): 42b70a4

fix: await coroutine

Browse files
Files changed (1) hide show
  1. 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(await llm_game_graph.ainvoke(asdict(graph_state)))
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 = {}