Skip to content

Commit 5795fa1

Browse files
committed
fix(rust): wire up retry logic, URL validation, SSE reconnection, document reply
- #4 HIGH: request_with_retry wraps all API calls with exponential backoff on 429/500/502/503/504 (uses stored max_retries, default 3) - #13 MEDIUM: base URL validated for http(s) scheme in HaiClient::new() - #14 MEDIUM: on_benchmark_job now reconnects with exponential backoff (max 10 attempts, stops on explicit "disconnect" event) - #17 MEDIUM: document why Rust uses server-side /email/reply endpoint; add reply endpoint to fixtures/contract_endpoints.json - All tests passing (config validation from prior commit + new tests) https://claude.ai/code/session_01MqxtVDf8nA4wPaPZD56zCM
1 parent b89bd46 commit 5795fa1

2 files changed

Lines changed: 538 additions & 52 deletions

File tree

fixtures/contract_endpoints.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@
1414
"method": "POST",
1515
"path": "/api/v1/agents/jobs/{job_id}/response",
1616
"auth_required": true
17+
},
18+
"reply": {
19+
"method": "POST",
20+
"path": "/api/agents/{agent_id}/email/reply",
21+
"auth_required": true,
22+
"note": "Server-side reply endpoint. Rust SDK uses this directly; Python/Node/Go currently fetch the original client-side and compose locally. Other SDKs should migrate to this endpoint for consistency."
1723
}
1824
}

0 commit comments

Comments
 (0)