# ============================================================================
# Teacher Memory 模板配置
# ============================================================================
# 定义标准回复模板，用于本地直出 Plan
# 当请求命中特定场景时，使用对应模板生成回复

# ============================================================================
# 查询类模板 (query.*)
# ============================================================================

templates:
  # 位置查询
  query.position:
    reply: "我目前在广场。"
    command: ""
    source: "cloud_teacher"
    verified: true
    response_type: "speak"

  # 状态查询
  query.status:
    reply: "我当前电量充足，状态正常，随时可以工作。"
    command: ""
    source: "cloud_teacher"
    verified: true
    response_type: "speak"

  # 数量查询
  query.count:
    reply: "当前检测到2只牛。"
    command: ""
    source: "cloud_teacher"
    verified: true
    response_type: "speak"

  # 天气查询
  query.weather:
    reply: "当前天气晴朗，温度28°C，适合户外工作。"
    command: ""
    source: "cloud_teacher"
    verified: true
    response_type: "speak"

  # 身份查询
  query.identity:
    reply: "我是农宝，智能农场机器人，为您服务。"
    command: ""
    source: "cloud_teacher"
    verified: true
    response_type: "speak"

  # ============================================================================
  # 缺槽类模板 (task.*.missing_*)
  # ============================================================================

  # 打开设备 - 缺对象
  task.open.missing_object:
    reply: "好的，请问您要打开什么设备？"
    command: "ask=object"
    source: "template"
    verified: true
    response_type: "ask"

  # 关闭设备 - 缺对象
  task.close.missing_object:
    reply: "好的，请问您要关闭什么设备？"
    command: "ask=object"
    source: "template"
    verified: true
    response_type: "ask"

  # 调节设备 - 缺对象
  task.adjust.missing_object:
    reply: "好的，请问您要调节什么设备？"
    command: "ask=object"
    source: "template"
    verified: true
    response_type: "ask"

  # 喂食 - 缺地点
  task.feed.missing_location:
    reply: "好的，请告诉我要去哪个牛棚。"
    command: "ask=location"
    source: "template"
    verified: true
    response_type: "ask"

  # 移动 - 缺地点
  task.move.missing_location:
    reply: "好的，请告诉我要去哪里。"
    command: "ask=location"
    source: "template"
    verified: true
    response_type: "ask"

  # 巡检 - 缺地点
  task.inspect.missing_location:
    reply: "好的，请告诉我要去哪个地点巡检。"
    command: "ask=location"
    source: "template"
    verified: true
    response_type: "ask"

  # ============================================================================
  # 边界类模板 (task.*.alias_like_location / unknown_location / unreachable_location)
  # ============================================================================

  # 喂食 - 非标准地点（别名）
  task.feed.alias_like_location:
    reply: "我理解您说的可能是牛棚1号，请确认一下是否正确。"
    command: "ask=location_confirm"
    source: "template"
    verified: true
    response_type: "confirm"
    confirmation_target: "牛棚1号"

  task.feed.alias_like_location.牛棚2号:
    reply: "我理解您说的可能是牛棚2号，请确认一下是否正确。"
    command: "ask=location_confirm"
    source: "template"
    verified: true
    response_type: "confirm"
    confirmation_target: "牛棚2号"

  # 移动 - 非标准地点（别名）
  task.move.alias_like_location:
    reply: "我理解您说的可能是广场，请确认一下是否正确。"
    command: "ask=location_confirm"
    source: "template"
    verified: true
    response_type: "confirm"
    confirmation_target: "广场"

  task.move.alias_like_location.大门:
    reply: "我理解您说的可能是大门，请确认一下是否正确。"
    command: "ask=location_confirm"
    source: "template"
    verified: true
    response_type: "confirm"
    confirmation_target: "大门"

  # 巡检 - 非标准地点（别名）
  task.inspect.alias_like_location:
    reply: "我理解您说的可能是牛棚1号，请确认一下是否正确。"
    command: "ask=location_confirm"
    source: "template"
    verified: true
    response_type: "confirm"
    confirmation_target: "牛棚1号"

  # 喂食 - 未知地点
  task.feed.unknown_location:
    reply: "这个地点我暂时无法确认，请您再说明一下具体位置。"
    command: "ask=location_retry"
    source: "template"
    verified: true
    response_type: "confirm"

  task.move.unknown_location:
    reply: "这个地点我暂时无法确认，请您再说明一下具体位置。"
    command: "ask=location_retry"
    source: "template"
    verified: true
    response_type: "confirm"

  task.inspect.unknown_location:
    reply: "这个地点我暂时无法确认，请您再说明一下具体位置。"
    command: "ask=location_retry"
    source: "template"
    verified: true
    response_type: "confirm"

  # 喂食 - 不可达地点
  task.feed.unreachable_location:
    reply: "抱歉，该地点当前不可到达，不能执行这个任务。"
    command: "reject"
    source: "template"
    verified: true
    response_type: "reject"

  task.move.unreachable_location:
    reply: "抱歉，该地点当前不可到达，无法移动到那里。"
    command: "reject"
    source: "template"
    verified: true
    response_type: "reject"

  task.inspect.unreachable_location:
    reply: "抱歉，该地点当前不可到达，无法进行巡检。"
    command: "reject"
    source: "template"
    verified: true
    response_type: "reject"

  # ============================================================================
  # Already There 类模板 (task.*.already_there)
  # ============================================================================

  # 已在目标点 - 移动
  task.move.already_there:
    reply: "您当前已经在目标地点，无需移动。"
    command: "noop"
    source: "template"
    verified: true
    response_type: "already_there"

  # 已在目标点 - 喂食
  task.feed.already_there:
    reply: "您当前已经在目标牛棚，可以直接执行喂食操作。"
    command: "noop"
    source: "template"
    verified: true
    response_type: "already_there"

  # 已在目标点 - 巡检
  task.inspect.already_there:
    reply: "您当前已经在目标区域，可以直接开始巡检。"
    command: "noop"
    source: "template"
    verified: true
    response_type: "already_there"

  # ============================================================================
  # 复杂任务类模板 (task.complex.*)
  # ============================================================================

  # 条件任务（不直接输出，等待云端处理）
  task.complex.conditional:
    reply: ""
    command: ""
    source: "template"
    verified: true
    response_type: "defer_to_cloud"
    route_hint: "cloud"

  # 多步骤任务（不直接输出，等待云端处理）
  task.complex.multistep:
    reply: ""
    command: ""
    source: "template"
    verified: true
    response_type: "defer_to_cloud"
    route_hint: "cloud"

  # ============================================================================
  # 标准任务类模板 (task.*.standard)
  # ============================================================================

  # 标准喂食任务
  task.feed.standard:
    reply: ""
    command: "feed"
    source: "template"
    verified: true
    response_type: "execute"

  # 标准移动任务
  task.move.standard:
    reply: ""
    command: "move"
    source: "template"
    verified: true
    response_type: "execute"

  # 标准巡检任务
  task.inspect.standard:
    reply: ""
    command: "inspect"
    source: "template"
    verified: true
    response_type: "execute"

  # 标准打开设备
  task.open.standard:
    reply: ""
    command: "turn_on"
    source: "template"
    verified: true
    response_type: "execute"

  # 标准关闭设备
  task.close.standard:
    reply: ""
    command: "turn_off"
    source: "template"
    verified: true
    response_type: "execute"

