| name | scienceworld-reset |
| type | python |
| description | Start a ScienceWorld episode. Reads scenario, difficulty, and seed from scienceworld_config in character YAML. Returns the initial observation plus a session_id for subsequent steps. |
| schema_hint | [object Object] |
| examples | {"type":"scienceworld-reset","out":"$sw_session"} |
ScienceWorld Reset (Level 4)
Input
- Scenario, difficulty, and seed are read from
scienceworld_configin the character YAML file valueparameter is ignored (scenario comes from config)- No parameters needed - tool reads everything from config
Output
- Note ID (bound to
outvariable) containing:text: initial observation/descriptionmetadata.session_id: identifier for this sessionmetadata.scenario,metadata.variation_idx,metadata.simplification,metadata.seedmetadata.reward(0 at reset),metadata.done(false)
Requirements
- Python package
scienceworldavailable in the environment. - ScienceWorld assets accessible (installed with the package).
Configuration
Requires scienceworld_config section in character YAML:
scienceworld_config:
scenario: "waterplant"
difficulty: 0
seed: 42
Common Workflow
{"type":"scienceworld-reset","out":"$sw"}
{"type":"scienceworld-act","action":"look","out":"$o1"}
Note: scienceworld-act no longer requires session_id - it uses the active session stored in executive_node.scienceworld_env.