-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[rollout] feat: pass all dataset fields to agent loop run #2810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rollout] feat: pass all dataset fields to agent loop run #2810
Conversation
There was a problem hiding this 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.
|
@PopSoda2002 could help to review! thanks so much! |
docs/advance/agent_loop.rst
Outdated
| AgentLoopOutput: Agent loop output. | ||
| """ | ||
| raise NotImplementedError | ||
| @abstractmethod |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
will take a look later 🛫 |
…#2810) ### What does this PR do? Pass all dataset fields from `RLHFDataset` to agent loop run, including: - raw_prompt - tools_kwargs - multi_modal_data - ...
…#2810) ### What does this PR do? Pass all dataset fields from `RLHFDataset` to agent loop run, including: - raw_prompt - tools_kwargs - multi_modal_data - ...
…#2810) ### What does this PR do? Pass all dataset fields from `RLHFDataset` to agent loop run, including: - raw_prompt - tools_kwargs - multi_modal_data - ...
What does this PR do?
Pass all dataset fields from
RLHFDatasetto agent loop run, including: