Skip to content

Conversation

@wuxibin89
Copy link
Collaborator

What does this PR do?

Pass all dataset fields from RLHFDataset to agent loop run, including:

  • raw_prompt
  • tools_kwargs
  • multi_modal_data
  • ...

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the agent loop to accept arbitrary dataset fields via **kwargs, which improves flexibility. However, the implementations in ReactAgentLoop, SingleTurnAgentLoop, and ToolAgentLoop now unsafely access kwargs["raw_prompt"]. This will cause a KeyError if the dataset is not configured to provide this field. I've added critical comments with suggestions to handle this case gracefully by checking for the key's existence before access.

@zhaochenyang20
Copy link
Collaborator

@PopSoda2002 could help to review! thanks so much!

AgentLoopOutput: Agent loop output.
"""
raise NotImplementedError
@abstractmethod
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a format issue? There seems to be an additional space

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@PopSoda2002
Copy link
Contributor

@PopSoda2002 could help to review! thanks so much!

will take a look later 🛫

@vermouth1992 vermouth1992 merged commit a479fc8 into volcengine:main Jul 30, 2025
52 of 53 checks passed
yellowbee686 pushed a commit to yellowbee686/verl that referenced this pull request Jul 31, 2025
…#2810)

### What does this PR do?

Pass all dataset fields from `RLHFDataset` to agent loop run, including:
- raw_prompt
- tools_kwargs
- multi_modal_data
- ...
Juniper1021 pushed a commit to Juniper1021/verl that referenced this pull request Aug 7, 2025
…#2810)

### What does this PR do?

Pass all dataset fields from `RLHFDataset` to agent loop run, including:
- raw_prompt
- tools_kwargs
- multi_modal_data
- ...
whatadayG pushed a commit to whatadayG/verl that referenced this pull request Sep 5, 2025
…#2810)

### What does this PR do?

Pass all dataset fields from `RLHFDataset` to agent loop run, including:
- raw_prompt
- tools_kwargs
- multi_modal_data
- ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants