You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: retry on more httpx exceptions
* fix: Add retry parity to typescript and update docs
* chore: (skills) update skills to match latest state of the sdk
* chore: (docs) update stale sdk code
* chore: (docs) clean up inconsistencies in docs
* chore: Rebuild Package
---------
Co-authored-by: Vineeth Voruganti <13438633+VVoruganti@users.noreply.github.com>
response =await peer.chat("What does this user prefer?")
142
+
peer =awaithoncho.aio.peer("user-123")
143
+
response =await peer.aio.chat("What does this user prefer?")
144
144
```
145
145
146
146
Match the client to the framework — check whether the codebase uses `async def` handlers or sync `def` handlers and choose accordingly. The rest of this skill shows sync Python examples; swap to `.aio` equivalents for async codebases.
@@ -188,7 +188,7 @@ Create peers for **every entity** in your business logic - users AND AI assistan
The SDK now catches `httpx.NetworkError` and `httpx.RemoteProtocolError` for retry in addition to `httpx.TimeoutException` and `httpx.ConnectError`. This is transparent — no code changes needed.
Copy file name to clipboardExpand all lines: .claude/skills/migrate-honcho-py/SKILL.md
+86-6Lines changed: 86 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
name: migrate-honcho
3
-
description: Migrates Honcho Python SDK code from v1.6.0 to v2.0.0. Use when upgrading honcho package, fixing breaking changes after upgrade, or when errors mention AsyncHoncho, observations, Representation class, .core property, or get_config methods.
3
+
description: Migrates Honcho Python SDK code from v1.6.0 to v2.1.1. Use when upgrading honcho package, fixing breaking changes after upgrade, or when errors mention AsyncHoncho, observations, Representation class, .core property, or get_config methods.
4
4
---
5
5
6
-
# Honcho Python SDK Migration (v1.6.0 → v2.0.0)
6
+
# Honcho Python SDK Migration (v1.6.0 → v2.1.1)
7
7
8
8
## Overview
9
9
10
-
This skill migrates code from `honcho` Python SDK v1.6.0 to v2.0.0 (required for Honcho 3.0.0+).
10
+
This skill migrates code from `honcho` Python SDK v1.6.0 to v2.1.1 (required for Honcho 3.0.0+).
# peer.card() still works but is deprecated — use get_card()
199
+
200
+
# New in v2.0.1: set_card()
201
+
peer.set_card(["Prefers dark mode", "Located in US"])
202
+
```
203
+
204
+
### 11. Strict input validation (v2.0.2+)
205
+
206
+
All input models now reject unknown fields via `extra="forbid"` Pydantic validation. Previously, misspelled or extraneous fields were silently ignored.
### 12. peer() and session() always make API calls (v2.1.0+)
217
+
218
+
**Breaking**: `peer()` and `session()` now always make a get-or-create API call. Previously, calling without metadata/configuration returned a lazy object with no API call.
219
+
220
+
```python
221
+
# Before (v2.0.x) — no API call without options
222
+
peer = client.peer("user-123") # Lazy, no network request
223
+
224
+
# After (v2.1.0+) — always hits the API
225
+
peer = client.peer("user-123") # Makes POST to /peers (get-or-create)
226
+
227
+
# Async
228
+
peer =await client.aio.peer("user-123") # Also always hits API
# Works on: client.peers(), client.sessions(), peer.sessions(),
266
+
# session.messages(), scope.list()
267
+
```
268
+
269
+
### 15. Broader HTTP retry logic (v2.1.1+)
270
+
271
+
The SDK now retries on `httpx.TimeoutException`, `httpx.NetworkError`, and `httpx.RemoteProtocolError` (previously only `httpx.TimeoutException` and `httpx.ConnectError`). These are mapped to the SDK's `TimeoutError` and `ConnectionError` respectively. No code changes needed — this is transparent.
0 commit comments