Why do we not know which toml library we're using?...
# proj-sdk
w
Why do we not know which toml library we're using? is this LLM slop?
looks like 3.12+ has a built-in toml lib, and we require 3.12, so we can ditch this
c
I think we can just 💥 this function? I don’t think we need it anymore
Probably just some leftover from V0
👍 1
@nutritious-balloon-65098 please remove the load_from_toml function in the All-Hands-AI/agent-sdk and any usage of toml
n
I'm on it! Xingyao Wang can track my progress here.
Summary I have successfully completed the requested task to remove the
load_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>
Summary I have successfully completed your request to remove the
load_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>