File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
packages/hotpotqa/src/aviary/envs/hotpotqa Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -310,13 +310,10 @@ async def step(
310
310
self .state .reward = 0.0
311
311
response_messages = cast (
312
312
Messages ,
313
- # Ordered since things like search -> lookup need to be run in order.
313
+ # Non-concurrent since things like search -> lookup need to be run in order.
314
314
# NOTE: Handling tool exceptions here keeps the trajectory going, but I don't
315
315
# think the returned message is useful to the agent/learning. Disabling for now.
316
- await self .exec_tool_calls (
317
- action ,
318
- ordered = True ,
319
- ),
316
+ await self .exec_tool_calls (action , concurrency = False ),
320
317
)
321
318
return response_messages , self .state .reward , self .state .done , False
322
319
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ async def exec_tool_calls(
166
166
Args:
167
167
message: ToolRequestMessage containing the tool calls.
168
168
concurrency: Flag to set True (default) to concurrently execute tool calls,
169
- otherwise set False to execute tools sequentially .
169
+ otherwise set False to execute tool calls in the provided order .
170
170
handle_tool_exc: Opt-in flag to suppress Exceptions and return them as a
171
171
ToolResponseMessage.
172
172
handle_invalid_tool_calls: Flag to handle invalid tool calls by returning
You can’t perform that action at this time.
0 commit comments