返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

alfworld-open-receptacle

这项技能可以打开一个封闭的容器,以便访问其内部的内容。当代理需要与封闭容器(如冰箱、微波炉、抽屉)内的物品进行交互时,应触发此技能。该技能接受容器标识符作为输入,执行打开动作,并输出内部观察结果,从而能够后续取物或放置物品。

person作者: jakexiaohubgithub

Skill: Open Receptacle

Purpose

Open a closed container to reveal its contents for subsequent interaction.

When to Use

Use this skill when:

  • You need to take an item from inside a closed receptacle
  • You need to put an item into a closed receptacle
  • You observe a receptacle is closed (e.g., "The fridge 1 is closed")
  • The task requires accessing items inside containers

Input Format

The skill requires a receptacle identifier as input. This should match the environment's naming convention (e.g., "fridge 1", "microwave 1", "drawer 3").

Execution Steps

  1. Verify receptacle state: Check if the receptacle is mentioned as "closed" in the observation
  2. Navigate to receptacle: Use go to {recep} if not already at the location
  3. Execute open action: Use open {recep} where {recep} is the receptacle identifier
  4. Process result: The environment will respond with the interior contents or an error

Expected Outcomes

  • Success: Observation showing the receptacle is open and listing contained items
  • Failure: "Nothing happened" indicates the action was invalid (e.g., already open, wrong identifier)

Example from Trajectory