name: schema_advisor
agent_type: schema_advisor
version: "1.0.0"
description: "Schema优化建议Agent：识别Schema缺失维度，生成JSON-LD结构化数据建议"
preconditions:
  - "必须提供有效的 brand_id"
  - "custom_handler（configs.geo_handlers.handle_schema_task）须可正确导入"
  - "诊断数据 diagnosis_data 须为有效结构化数据"
  - "品牌信息 brand_info 须完整（至少包含名称与行业）"
task_mode: custom
supported_tasks:
  - schema_advise
max_concurrency: 2
custom_handler: "configs.geo_handlers.handle_schema_task"

intent:
  keywords: ["Schema", "结构化数据", "JSON-LD", "schema", "schema优化"]
  description: "用户需要识别Schema缺失维度，生成结构化数据建议"
  examples:
    - "帮我优化Schema"
    - "生成JSON-LD结构化数据"
    - "Schema有什么可以改进的"

input_schema:
  type: object
  required:
    - brand_id
  properties:
    brand_id:
      type: string
      description: 品牌ID
    diagnosis_data:
      type: object
      description: 诊断数据
    brand_info:
      type: object
      description: 品牌信息
    focus_dimensions:
      type: array
      items:
        type: string
      description: 重点关注维度

output_schema:
  type: object
  properties:
    brand_id:
      type: string
    suggestions:
      type: array
    total:
      type: integer

tools:
  - fill_schema_with_llm
  - schema_extract
  - schema_generate

memory:
  working:
    enabled: true
  episodic:
    enabled: true
    track_success: true
