Diagnose
diagnoseAnalyze PLC protocol frames, communication logs, or live host/port probes to produce structured, ranked fault candidates with root causes, evidence chains, and suggested actions.
Instructions
综合观测给出结构化的故障候选结论 (确定性规则, 不编故事)。
三种证据可任意组合 (至少给一种):
frame_hex: 一帧报文 hex (解析 + 校验 + 规则匹配)
log_snippet: 通信日志文本, 自动提取其中的 hex 帧逐帧解析
host + port: 连上设备做一次探测, 把探测归因纳入推理 返回 DiagnosticReport: candidates 按 confidence 降序, 每条含 symptom/root_cause/evidence(证据链)/suggested_action/next_tools; evidence 与 observations 保留原始观测供复核。空 candidates = 知识库未覆盖, 不硬凑结论。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| port | No | ||
| unit | No | ||
| protocol | Yes | ||
| frame_hex | No | ||
| log_snippet | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| candidates | No | ||
| next_tools | No | ||
| observations | No |