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

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 …

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

它会碰到什么

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

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

技能内容

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 the reference_object. Sub-goal 2: Inspect the area beneath it for the primary_target.
  • IF relation is in or on → Sub-goal 1: Locate the reference_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 拉。许可未声明的技能只给原始仓库链接,不打包。