Previously, most methods in HindsightClient would silently return undefined when API calls failed (e.g., connection refused). Only the `recall` method had proper error checking. This change adds a `validateResponse` helper method and applies it consistently to all API methods: - retain - retainBatch - recall - reflect - listMemories - createBank - getBankProfile Now all methods properly throw an error with details when the API request fails, instead of returning undefined. |
||
|---|---|---|
| .. | ||
| python | ||
| rust | ||
| typescript | ||
| .gitignore | ||