Skip to content

refactor(shared): extract TOOL_KIND_MAPPING to shared module#778

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/extract-tool-kind-mapping
Open

refactor(shared): extract TOOL_KIND_MAPPING to shared module#778
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/extract-tool-kind-mapping

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Extracts the TOOL_KIND_MAPPING constant from acp_impl/events/utils.py to a new shared/tool_kinds.py module to centralize tool kind definitions and reduce code duplication.

Changes

  • Created openhands_cli/shared/tool_kinds.py with the shared constant
  • Updated acp_impl/events/utils.py to import from shared module
  • Updated acp_impl/events/tool_state.py to import from shared module
  • Updated shared/__init__.py to export the constant

Related Issue

Addresses findings from #777

Testing

  • Linting passes (make lint)
  • Tests pass (make test - 1357 tests)

This PR was automatically generated by the Code Quality Report workflow.

Move the TOOL_KIND_MAPPING constant from acp_impl/events/utils.py to
shared/tool_kinds.py to centralize tool kind definitions and reduce
code duplication.

Addresses item from code quality report.

Closes #777

Co-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants