alfworld-goal-interpreter
Parses the natural language task goal to extract actionable sub-objectives and required objects. Trigger this skill whenever a new task is assigned …
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Goal Interpretation Protocol
1. Parse the Task Statement
When a new task is assigned, immediately analyze the natural language instruction to extract its core components. Use the parsing script (parse_goal.py) to perform this analysis.
Input: The raw task string (e.g., "look at pillow under the desklamp").
Output: A structured dictionary containing:
primary_target: The main object to interact with.reference_object: The object that defines a location or condition.spatial_relation: The preposition linking them (e.g., under, on, in).action: The verb defining the required interaction.
2. Generate Sub-Objectives
Based on the parsed components, formulate a clear, sequential plan. The plan must account for the spatial relationship.
Example Logic:
- IF relation is
under→ Sub-goal 1: Locate thereference_object. Sub-goal 2: Inspect the area beneath it for theprimary_target. - IF relation is
inoron→ Sub-goal 1: Locate thereference_object. Sub-goal 2: Check its contents/surface.
3. Identify Required Objects & Actions
Map the parsed objects to the available action types in the environment. The primary action verbs (look, take, use, etc.) from the task must be translated into the agent's available action set (go to, take, use, etc.).
Critical Check: If the reference_object is a container (drawer, fridge), ensure the plan includes the open action before inspection.
4. Execute & Adapt
Initiate the plan. After each action, monitor the observation. If the expected object is not found, or the action fails ("Nothing happened"), consult the fallback logic in the reference guide (search_patterns.md).
Remember: The agent must maintain object permanence. If an object is moved (e.g., a pillow is picked up), it is now in the agent's inventory and the spatial relationship is void.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
experiments/src/skills/alfworld/alfworld-goal-interpreter/SKILL.md同一个仓库里的其他技能
- alfworld-appliance-navigator
- alfworld-appliance-preparer
- alfworld-clean-object
- alfworld-device-operator
- alfworld-environment-scanner
- alfworld-heat-object-with-appliance
- alfworld-inventory-management
- alfworld-locate-target-object
- alfworld-location-navigator
- alfworld-navigation-planner
- alfworld-object-cooler
- alfworld-object-disposer