30 lines
800 B
YAML
30 lines
800 B
YAML
name: diagnosis
|
|
version: "1.0"
|
|
description: "诊断分析流水线 - 引用检测与竞争分析"
|
|
|
|
variables:
|
|
default_platform: "zhihu"
|
|
|
|
stages:
|
|
- name: citation_detection
|
|
agent: citation_detector
|
|
action: detect
|
|
inputs:
|
|
query_id: "${query_id}"
|
|
platform: "${platform}"
|
|
ai_response: "${ai_response}"
|
|
outputs: [citations, citation_count, confidence_score]
|
|
timeout_seconds: 120
|
|
|
|
- name: competitor_analysis
|
|
agent: competitor_analyzer
|
|
action: analyze
|
|
inputs:
|
|
query_id: "${query_id}"
|
|
platform: "${platform}"
|
|
citations: "${stages.citation_detection.outputs.citations}"
|
|
brand_name: "${brand_name}"
|
|
outputs: [competitor_report, visibility_score, recommendations]
|
|
timeout_seconds: 180
|
|
depends_on: [citation_detection]
|