跳到主要内容
知仓学习社ZHICANG

alfworld-temperature-regulator

Manages the temperature state of an object by placing it into an appropriate appliance (fridge for cooling, microwave for heating). Use when the tas…

不碰外部(只输出文字)无严重或高危命中zjunlp/SkillNet

它会碰到什么

扫了多少3 个文本文件,6 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Instructions

This skill executes a sequence to change an object's temperature by placing it in a specific receptacle (e.g., fridge for cooling, microwave for heating) and then relocating it to a final target location.

1. Input Validation & Planning

  • Inputs Required: The object identifier (e.g., bread 1) and the temperature_receptacle identifier (e.g., fridge 1 for cooling, microwave 1 for heating). The final target_receptacle (e.g., diningtable 1) is also required.
  • Verify the provided object and receptacles exist in the agent's current observation. If not, the agent must first navigate to locate them.
  • Plan the sequence: Locate object -> Pick up object -> Navigate to temperature receptacle -> Open it (if closed) -> Place object inside -> Close receptacle (optional, based on environment feedback) -> Navigate to target receptacle -> Place object there.

2. Execution Sequence

Follow this core logic. Use deterministic scripts for error-prone steps (see scripts/).

  1. Acquire Object: go to the object's location, then take {object} from {recep}.
  2. Apply Temperature Effect:
  • go to {temperature_receptacle}.
  • If the receptacle is reported as "closed", open {temperature_receptacle}.
  • put {object} in/on {temperature_receptacle}.
  • (Optional) close {temperature_receptacle} if the environment or task logic suggests it (e.g., maintaining fridge temperature).
  1. Deliver Object: go to {target_receptacle}, then put {object} in/on {target_receptacle}.

3. Error Handling & Observations

  • If an action results in "Nothing happened", consult the troubleshooting guide in references/troubleshooting.md.
  • Always verify the state change after each action (e.g., "You pick up...", "You open...", "You put...").
  • If the object is not at the expected location, pause execution and re-scan the environment.

4. Example

Task: "Cool some bread and put it on the diningtable."

Input: object: bread 1, temperature_receptacle: fridge 1, target_receptacle: diningtable 1

Sequence:

  1. go to countertop 1 → Observation: "You are at countertop 1. You see bread 1, ..."
  2. take bread 1 from countertop 1 → Observation: "You pick up the bread 1 from the countertop 1."
  3. go to fridge 1 → Observation: "You are at fridge 1."
  4. cool bread 1 with fridge 1 → Observation: "You cool the bread 1 using the fridge 1."
  5. go to diningtable 1 → Observation: "You are at diningtable 1."
  6. put bread 1 in/on diningtable 1 → Observation: "You put the bread 1 in/on the diningtable 1."

Output: The bread 1 is cooled and placed on the diningtable 1. Task complete.

5. Completion

The skill is complete when the object has been placed into the temperature_receptacle and subsequently placed onto the target_receptacle. Confirm the final observation states the object is on the target.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。