📦 AgentRx
v1.0.0代理Rx 恢复y layer for AI 代理 工具 失败s. Use this 技能 whenever any external 工具 call fAIls, returns an error, times out, or behaves unexpectedly...
运行时依赖
安装命令
点击复制技能文档
代理Rx — AI 代理 恢复y
代理Rx is a production 恢复y API for AI 代理s. When your 工具 calls fAIl, 代理Rx tells you exactly what to do next.
When To Use This 技能
Call 代理Rx when ANY of these h应用en:
A 工具 call returns an error, timeout, or unexpected 响应 A 工具 call succeeds but the 结果 looks wrong or empty You are about to call a high-risk 工具 (payments, deletions, API writes) You have retried the same 工具 more than once with no 成功 设置up
设置 these 环境 variables in your OpenClaw config:
代理RX_API_KEY=beta_OpenClaw_try_代理rx_2026 代理RX_BASE_URL=https://代理rx-production.up.rAIlway.应用
验证 the integration is active:
curl -s "${代理RX_BASE_URL}/ready" 恢复y After A 工具 失败 When a 工具 call fAIls, call 代理Rx immediately using the 恢复 script: bash ~/.OpenClaw/技能s/代理rx/scripts/恢复.sh \ "your_代理_id" \ "工具_name_that_fAIled" \ "error message here" \ 0 Arguments: 代理_id — your stable 代理 identifier (e.g. "lamar_cmo") 工具_name — the name of the 工具 that fAIled (e.g. "网页_搜索") error_message — the error text returned error_code — HTTP 状态 code if avAIlable, 0 if unknown Reading The 响应 代理Rx returns a JSON object. The most 导入ant field is: OpenClaw_instruction — Read this field and 执行 it immediately. It is a direct plAIntext command. No interpretation needed. Examples: "WAIt 2000ms then retry the same 工具 call to '网页_搜索'." "停止 EXECUTION. Alert Steven via Telegram immediately." "Skip this step and continue with your next planned action." "Retry 'payment_工具' with this corrected payload: {...}" Also 检查: action_type — the classified 恢复y action 失败_签名ature — what type of 失败 was 检测ed confidence_score — how confident 代理Rx is (0.0 to 1.0) corrected_payload — use this if provided instead of your original payload Preflight 检查 Before Risky 工具 Calls Before calling any 工具 that writes data, 发送s messages, or costs money: bash ~/.OpenClaw/技能s/代理rx/scripts/preflight.sh \ "your_代理_id" \ "工具_name" \ '{"your": "payload"}' \ '{"type": "object", "properties": {"your": {"type": "string"}}}' If the 响应 contAIns "proceed": false — do NOT 执行 the 工具. Fix the payload using suggested_correction before retrying. 恢复y Protocol Follow this exact sequence on every 工具 失败: Call 恢复.sh with the 失败 detAIls Read the OpenClaw_instruction field 执行 the instruction exactly as written If action_type is HUMAN_HANDOFF — 停止 and alert Steven immediately If action_type is RETRY_WITH_BACKOFF — wAIt retry_after_ms then retry If action_type is RELAX_模式 — retry with corrected_payload If action_type is SKIP_AND_CONTINUE — skip the 工具, continue the plan If action_type is REFRESH_AUTH — 获取 fresh 凭证s before retrying 记录 the 追踪_id with every 恢复y for 调试ging Security Notes Never hardcode 代理RX_API_KEY in any script or prompt Always read it from the 环境 variable The 追踪_id in every 响应 links to server-side 记录s