ensp_smart_config
Send configuration commands sequentially to eNSP devices; on failure, diagnose the command and return repair suggestions, optionally stopping to prevent cascading errors.
Instructions
智能配置下发:逐条下发命令,遇到错误时自动诊断并提供修复建议。
与 ensp_send_commands 的区别:
每条命令执行后,若
errored=True自动调用诊断引擎返回中包含每条失败命令的
diagnosis字段stop_on_error=True时首条失败即停止,避免级联错误auto_gather_llm_context=True时,失败后自动收集设备全貌供 LLM 深度推理
参数:
session_id_or_name:会话 ID 或设备名commands:命令列表stop_on_error:遇错即停(推荐 True)auto_diagnose:自动对失败命令执行规则诊断(默认 True)auto_gather_llm_context:失败后自动收集设备全貌生成 LLM 推理上下文(默认 False)experiment_description:用户实验需求描述(用于 LLM 推理上下文)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| auto_diagnose | No | ||
| stop_on_error | No | ||
| session_id_or_name | Yes | ||
| experiment_description | No | ||
| auto_gather_llm_context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||