Skip to content

Commit f3bda5f

Browse files
committed
Further adjusted wording on non-tool request condition
1 parent 502b496 commit f3bda5f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/paperqa/agents/env.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,7 @@ async def step(
317317
# if given a plain Message, or into LDP as a tool-calling SimpleAgent
318318
# should not be responding with a plain Message
319319
return ( # type: ignore[unreachable]
320-
[
321-
Message(
322-
content=(
323-
f"Expected a {ToolRequestMessage.__name__} containing"
324-
f" 0+ tool calls, but received a {type(action).__name__}."
325-
)
326-
)
327-
],
320+
[Message(content="You must call tools to proceed.")],
328321
self.USE_POST_PROCESSED_REWARD,
329322
False,
330323
False,

0 commit comments

Comments
 (0)