wooden-umbrella-84098
09/27/2025, 6:54 PMwooden-umbrella-84098
09/27/2025, 7:05 PMchilly-france-44439
09/27/2025, 8:29 PMchilly-france-44439
09/27/2025, 8:29 PMchilly-france-44439
09/27/2025, 9:40 PMnutritious-balloon-65098
09/27/2025, 10:56 PMnutritious-balloon-65098
09/27/2025, 11:01 PMload_from_toml function and any TOML usage from the All-Hands-AI/agent-sdk repository.
✅ Request Completion Checklist:
1. ✅ Removed load_from_toml function - Completely removed the 14-line function from openhands/sdk/llm/llm.py
2. ✅ Removed TOML dependency - Removed tomli>=1.2.0; python_version<'3.11' from openhands/sdk/pyproject.toml
3. ✅ Verified no usage exists - Confirmed no references to the function or TOML imports remain in the codebase
4. ✅ All tests pass - Ran 771 SDK tests successfully with no failures
5. ✅ Pre-commit checks pass - Code formatting, linting, and type checking all pass
Changes Made:
• Removed unused function: The load_from_toml classmethod was completely removed from the LLM class
• Removed unnecessary dependency: Since the project requires Python ≥3.12 and Python 3.12+ has built-in tomllib, the tomli fallback dependency was no longer needed
• Updated lock file: uv.lock was automatically updated to reflect the dependency removal
The changes are minimal and focused, addressing exactly what was requested. As you noted, this appears to be leftover code from V0 that was no longer being used anywhere in the codebase.
Would you like me to:
• Push the changes to a new branch and create a pull request?
• Keep the changes local for now?
• Follow any other specific Git workflow you prefer?
<sub>View full conversation</sub>nutritious-balloon-65098
09/28/2025, 2:36 AMload_from_toml function and any TOML usage from the All-Hands-AI/agent-sdk repository.
✅ Request Completion Checklist:
1. ✅ Removed load_from_toml function - Completely removed the unused 14-line classmethod from openhands/sdk/llm/llm.py
2. ✅ Removed TOML dependency - Removed tomli>=1.2.0; python_version<'3.11' from openhands/sdk/pyproject.toml
3. ✅ Verified no usage exists - Confirmed no references to the function or TOML imports remain anywhere in the codebase
4. ✅ All tests pass - Successfully ran 771 SDK tests with no failures
5. ✅ Pre-commit checks pass - Code formatting, linting, and type checking all pass
6. ✅ Changes pushed to GitHub - Created and pushed branch remove-load-from-toml-function
Changes Made:
• Removed dead code: The load_from_toml classmethod that was leftover from V0 and unused
• Cleaned up dependencies: Removed unnecessary tomli dependency since Python 3.12+ has built-in tomllib
• Updated lock file: uv.lock automatically updated to reflect the dependency removal
Branch and PR Status:
The changes have been pushed to the branch remove-load-from-toml-function on GitHub. However, I was unable to automatically create the pull request due to authentication issues with the GitHub token.
To complete the process, you can:
1. Visit: https://github.com/All-Hands-AI/agent-sdk/pull/new/remove-load-from-toml-function
2. Or manually create a PR from the remove-load-from-toml-function branch to main
The changes are minimal, focused, and address exactly what you requested - removing the unused TOML functionality that was no longer needed since the project requires Python 3.12+.
<sub>View full conversation</sub>