curved-angle-80449
11/06/2025, 5:26 PMcurved-angle-80449
11/06/2025, 5:27 PMchilly-france-44439
11/06/2025, 5:32 PMcurved-angle-80449
11/06/2025, 5:36 PMchilly-france-44439
11/06/2025, 5:37 PMopenhands/claude-sonnet-xx?curved-angle-80449
11/06/2025, 5:40 PMchilly-france-44439
11/06/2025, 5:41 PMcurved-angle-80449
11/06/2025, 6:09 PMwooden-umbrella-84098
11/06/2025, 6:35 PManthropic/claude but we can include the env var as well, to make it easier for John-Mason to demo 🙂 does that work?wooden-umbrella-84098
11/06/2025, 6:36 PMwooden-umbrella-84098
11/06/2025, 6:36 PMcurved-angle-80449
11/06/2025, 6:47 PMchilly-france-44439
11/06/2025, 6:52 PMcurved-angle-80449
11/06/2025, 6:58 PMcalm-artist-7206
11/06/2025, 7:00 PManthropic/ , the user will understand it immediately and be able to run it
For the record, I believe that the openhands/{model_name} uses a standard model_name. That likely means that in later scripts, multi-LLM or reasoning, people can probably transfer that knowledge to openhands/ , switching just the key. But I agree that the ability to run directly is nice and much more people will have an Anthropic key of coursecurved-angle-80449
11/06/2025, 8:05 PMANTHROPIC_API_KEY and when we use openhands/ in the examples we check LLM_API_KEY environment variable. No change to SDK but just to the examples. This would be a strong signal and allow one to have same shell environment to run all examples.curved-angle-80449
11/07/2025, 2:52 AM01_hello_world.py
2. Updates all examples from openhands/claude-sonnet-4-5-20250929 to anthropic/claude-sonnet-4-5-20250929
3. Allows LLM_MODEL and LLM_API_KEY environment variables to override settings in 01_hello_world.py as elsewherecurved-angle-80449
11/07/2025, 2:52 AMwooden-umbrella-84098
11/07/2025, 1:35 PMassert and do API_KEY in-line like we do for LLM_MODEL?wooden-umbrella-84098
11/07/2025, 1:35 PMcurved-angle-80449
11/07/2025, 2:12 PMcalm-artist-7206
11/07/2025, 2:13 PMcurved-angle-80449
11/07/2025, 2:15 PMcurved-angle-80449
11/07/2025, 2:17 PMcurved-angle-80449
11/07/2025, 2:24 PMcurved-angle-80449
11/07/2025, 2:28 PMnutritious-balloon-65098
11/07/2025, 2:28 PMcalm-artist-7206
11/07/2025, 2:34 PMnutritious-balloon-65098
11/07/2025, 2:35 PMassert statements that show full stack traces
• No error guard/wrapper - No optional mechanism to catch and display errors cleanly
• Limited proactive checking - Only basic validation (model required, streaming not supported)
• Inconsistent error suggestions - Most errors lack actionable guidance for users
• No error handling configuration - No options to control whether errors are caught/thrown or how they're displayed
Key Findings:
1. Exception Structure: Well-organized with base classes (LLMError, GitError, SkillError) and specific subtypes
2. Provider Integration: Excellent mapping from LiteLLM exceptions to SDK exceptions with intelligent classification
3. Retry Resilience: Sophisticated retry mechanism that handles transient failures gracefully
4. Missing UX Layer: The technical foundation is solid, but lacks user-friendly error presentation
Recommendations:
The SDK would significantly benefit from adding:
• Error display utilities for clean, stack-trace-free error messages
• Error guard decorators/context managers for optional graceful error handling
• Enhanced proactive parameter validation (API keys, model availability)
• Expanded error suggestions with actionable guidance
• Configuration options for error handling behavior
The current error handling is technically robust but needs a user experience layer to make errors more consumable for developers using the SDK.
<sub>View full conversation</sub>curved-angle-80449
11/07/2025, 2:48 PMcalm-artist-7206
11/07/2025, 2:51 PMcalm-artist-7206
11/07/2025, 2:53 PMcurved-angle-80449
11/07/2025, 2:56 PMcalm-artist-7206
11/07/2025, 4:37 PMcalm-artist-7206
11/09/2025, 6:36 AMtest-examples works, 3 failures
• one was fixed above
The other 2 are not LLM:
◦ delegation example has a problem
◦ probably some code relying on side-effect or related affects remote workspace example