MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / step

Function step

eval_heldout/hotpotQA/src/hotpotqa_env.py:3–9  ·  view source on GitHub ↗
(env, action)

Source from the content-addressed store, hash-verified

1import wikienv, wrappers
2
3def step(env, action):
4 attempts = 0
5 while attempts < 10:
6 try:
7 return env.step(action)
8 except requests.exceptions.Timeout:
9 attempts += 1
10
11class HotPotQAEnv:
12 def __init__(self, n_tasks=100):

Callers

nothing calls this directly

Calls 1

stepMethod · 0.45

Tested by

no test coverage detected