Skip to content

Commit ec1961e

Browse files
lc5211The tunix Authors
authored andcommitted
[Tunix] Update BaseAgent to accept observations with a "prompts" key rather than "question".
PiperOrigin-RevId: 875785435
1 parent 31720ac commit ec1961e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tunix/rl/agentic/agents/base_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def _observation_to_messages(
168168
info: Additional information from the environment.
169169
"""
170170
del reward, done, info # Unused in default implementation.
171-
if isinstance(observation, dict) and "question" in observation:
171+
if isinstance(observation, dict) and "prompts" in observation:
172172
self._messages.append(
173-
{"role": "user", "content": observation["question"]}
173+
{"role": "user", "content": observation["prompts"]}
174174
)
175175
elif isinstance(observation, str):
176176
self._messages.append({"role": "user", "content": observation})

0 commit comments

Comments
 (0)