scienceworld-conditional-placer ยท diff
git:20260307.388baa3 to git:20260316.1c3faca
28 added, 17 removed. Audit A to A.
---
name: scienceworld-conditional-placer
- description: Places an object into one of several designated containers based on a measured condition, such as a temperature threshold. It is triggered after a measurement or assessment when the task requires sorting or storing the object according to a rule.
+ description: Places an object into one of several designated containers based on a measured condition, such as a temperature threshold. Use this skill when you have completed a measurement or assessment and the task requires sorting or storing the object into one of multiple containers according to a rule (e.g., "if temperature > X, place in container A; otherwise container B").
---
# Skill: Conditional Object Placer
## Purpose
- This skill enables an agent to place a target object into a specific container based on a measured condition (e.g., temperature). It is used after a measurement step to complete a conditional sorting or storage objective.
+ Place a target object into the correct container based on a measured condition (e.g., temperature threshold, conductivity result). This skill executes the full measure-then-sort workflow.
## Core Workflow
- 1. **Locate & Acquire Measurement Tool:** Find and pick up the required measurement device (e.g., thermometer).
- 2. **Locate & Acquire Target Object:** Find and pick up the object to be measured and placed (e.g., metal fork).
- 3. **Identify Target Containers:** Find the designated containers (e.g., blue box, orange box).
- 4. **Perform Measurement:** Use the measurement tool on the target object to obtain the relevant value.
- 5. **Evaluate Condition & Execute Placement:** Apply the given rule to the measured value to select the correct container, then move the object into it.
+ 1. **Locate & Acquire Measurement Tool:** `teleport to LOC` then `pick up` the measurement device (e.g., thermometer).
+ 2. **Locate & Acquire Target Object:** `teleport to LOC` then `pick up` the object to be measured (e.g., metal fork).
+ 3. **Identify Target Containers:** Use `look around` to find the designated containers (e.g., blue box, orange box).
+ 4. **Perform Measurement:** `use OBJ on OBJ` (e.g., `use thermometer on metal fork`) to obtain the value.
+ 5. **Evaluate Condition & Place:** Compare the measured value against the threshold, then `move OBJ to OBJ` to place the object in the correct container.
- ## Key Actions & Logic
- * Use `teleport to LOC` to navigate efficiently between rooms.
- * Use `look around` to survey a room and locate objects.
- * Use `pick up OBJ` to acquire tools and the target object.
- * Use `use OBJ [on OBJ]` to perform the measurement (e.g., `use thermometer on metal fork`).
- * Use `move OBJ to OBJ` to place the target object into the selected container.
- * The decision logic is simple: compare the measured value against the provided threshold and select the corresponding container.
+ ## Key Actions
+ | Action | Purpose |
+ |--------|---------|
+ | `teleport to LOC` | Navigate between rooms |
+ | `look around` | Survey a room for objects |
+ | `pick up OBJ` | Acquire tools or target object |
+ | `use OBJ on OBJ` | Perform measurement |
+ | `move OBJ to OBJ` | Place object into selected container |
+ ## Example
+ **Task:** "Measure the temperature of the metal fork. If above 50C, place in the orange box. Otherwise, place in the blue box."
+
+ 1. `teleport to kitchen`
+ 2. `look around` โ find thermometer and metal fork
+ 3. `pick up thermometer`
+ 4. `pick up metal fork`
+ 5. `use thermometer on metal fork` โ reads 72 degrees
+ 6. 72 > 50, so: `move metal fork to orange box`
+
## Important Notes
- * All containers are pre-opened. Do not use `open` or `close` actions.
- * The skill assumes the measurement tool and target object can be picked up and are used from the inventory.
- * The specific rooms, object names, threshold value, and container names will vary per task. Adapt the skill steps accordingly.
+ * All containers are pre-opened. Do not use `open` or `close` actions.
+ * The measurement tool and target object must be picked up and used from inventory.
+ * Room names, object names, thresholds, and container names vary per task โ adapt accordingly.