Skip to content

fix: add DMWork to PLATFORMS registry in tools_config.py#2

Open
Jerry-Xin wants to merge 1 commit intoMLT-OSS:mainfrom
Jerry-Xin:fix/dmwork-platforms-registry
Open

fix: add DMWork to PLATFORMS registry in tools_config.py#2
Jerry-Xin wants to merge 1 commit intoMLT-OSS:mainfrom
Jerry-Xin:fix/dmwork-platforms-registry

Conversation

@Jerry-Xin
Copy link
Copy Markdown

Problem

When hermes-channel-dmwork adapter is installed and DMWork is configured as a platform in config.yaml, the gateway crashes with:

KeyError: 'dmwork'

This happens because hermes_cli/tools_config.py has a PLATFORMS dict that registers all known platforms, but DMWork is missing.

Fix

Add the dmwork entry to the PLATFORMS dict:

"dmwork": {"label": "💬 DMWork", "default_toolset": "hermes-dmwork"},

Testing

Verified on a live deployment with hermes-channel-dmwork adapter — gateway starts without KeyError and correctly resolves DMWork toolsets.

When hermes-channel-dmwork adapter is installed and DMWork is configured
as a platform, the gateway crashes with KeyError: 'dmwork' because the
PLATFORMS dict in tools_config.py has no 'dmwork' entry.

This adds the missing registration so DMWork platform toolsets resolve
correctly.
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.

1 participant