# Planner 配置示例
#
# 该配置文件用于配置 Planner 的行为参数

planner:
  # 规划模式: "rule" / "llm" / "hybrid"
  mode: "hybrid"

  # 默认风险等级: "low" / "medium" / "high"
  default_risk_level: "low"

  # 中风险操作是否需要用户确认
  require_confirmation_on_medium_risk: true

  # 高风险操作是否需要用户确认
  require_confirmation_on_high_risk: true

  # 单个 Plan 最大步骤数
  max_plan_steps: 10

  # 默认计划来源: "rule_engine" / "llm" / "hybrid"
  default_source: "hybrid"

  # 可用的能力列表
  available_tools:
    - "feed"
    - "adjust_fan"
    - "speak"
    - "query"
    - "move"
    - "inspect"
    - "control_light"
    - "turn_on"
    - "turn_off"

  # 意图关键词到 action 的映射
  # 通用意图示例，可根据实际场景扩展
  intent_to_action:
    "喂食": "feed"
    "喂养": "feed"
    "降温": "adjust_fan"
    "打开风扇": "adjust_fan"
    "关闭风扇": "adjust_fan"
    "播报": "speak"
    "报告": "speak"
    "通知": "speak"
    "查询": "query"
    "查看": "query"
    "移动": "move"
    "前往": "move"
    "打开": "turn_on"
    "关闭": "turn_off"
    "停止": "turn_off"

  # 高风险动作列表（需特殊确认）
  high_risk_actions:
    - "turn_off"
    - "emergency_stop"
    - "shutdown"
    - "reset"

  # 中风险动作列表
  medium_risk_actions:
    - "adjust_fan"
    - "control_light"
    - "adjust"
    - "modify"

  # 确认规则配置
  confirmation_rules:
    # 重复执行同一动作是否需要确认
    repeated_action_requires_confirmation: true

    # 执行器不可用时是否需要确认
    unavailable_actuator_requires_confirmation: true

    # 高风险操作是否需要确认
    high_risk_requires_confirmation: true

    # 中风险操作是否需要确认
    medium_risk_requires_confirmation: true
