Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions environments/sentence_repeater/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "sentence-repeater"
description = "Interactively repeat sentences from a paragraph in a random order"
version = "0.1.0"
version = "0.1.1"
tags = ["sentence-repeater", "multi-turn", "train", "eval"]
requires-python = ">=3.11"
dependencies = [
"verifiers>=0.1.4",
"verifiers>=0.1.8",
"datasets",
]

Expand Down
3 changes: 2 additions & 1 deletion environments/sentence_repeater/sentence_repeater.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ async def all_questions_answered(self, state: State) -> bool:
async def env_response(
self, messages: Messages, state: State, **kwargs
) -> Messages:
num_turn = len(state["trajectory"])
return [
{
"role": "user",
"content": state["info"]["questions"][state["turn"]],
"content": state["info"]["questions"][num_turn],
}
]

Expand Down
Loading