fix: add explicit hermes-api-server toolset for API server platform#3304
Merged
fix: add explicit hermes-api-server toolset for API server platform#3304
Conversation
The API server adapter was creating agents without specifying enabled_toolsets, causing ALL tools to load — including clarify, send_message, and text_to_speech which don't work without interactive callbacks or gateway dispatch. Changes: - toolsets.py: Add hermes-api-server toolset (core tools minus clarify, send_message, text_to_speech) - api_server.py: Resolve toolsets from config.yaml platform_toolsets via _get_platform_tools() — same path as all other gateway platforms. Falls back to hermes-api-server default when no override configured. - tools_config.py: Add api_server to PLATFORMS dict so users can customize via 'hermes tools' or platform_toolsets.api_server in config.yaml - 12 tests covering toolset definition, config resolution, and user override Reported by thatwolfieguy on Discord.
StreamOfRon
pushed a commit
to StreamOfRon/hermes-agent
that referenced
this pull request
Mar 29, 2026
…ousResearch#3304) The API server adapter was creating agents without specifying enabled_toolsets, causing ALL tools to load — including clarify, send_message, and text_to_speech which don't work without interactive callbacks or gateway dispatch. Changes: - toolsets.py: Add hermes-api-server toolset (core tools minus clarify, send_message, text_to_speech) - api_server.py: Resolve toolsets from config.yaml platform_toolsets via _get_platform_tools() — same path as all other gateway platforms. Falls back to hermes-api-server default when no override configured. - tools_config.py: Add api_server to PLATFORMS dict so users can customize via 'hermes tools' or platform_toolsets.api_server in config.yaml - 12 tests covering toolset definition, config resolution, and user override Reported by thatwolfieguy on Discord.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated version of PR #3284 — adds config-driven toolset resolution to the API server adapter, matching how every other gateway platform works.
Problem
The API server adapter created agents without
enabled_toolsets, loading ALL tools — includingclarify,send_message, andtext_to_speechwhich don't work without interactive callbacks or gateway dispatch. This confused models by presenting irrelevant tools, and meantplatform_toolsetsconfig overrides didn't work for the API server.Reported by thatwolfieguy on Discord: asking for a live USD/JPY exchange rate via the API server returned stale training data instead of using web_search.
Changes
toolsets.py: Addhermes-api-servertoolset — same as_HERMES_CORE_TOOLSminusclarify,send_message,text_to_speechgateway/platforms/api_server.py: Resolve toolsets fromconfig.yamlvia_get_platform_tools()— same code path as Telegram, Discord, Slack, etc. Falls back tohermes-api-serverdefault when no config override exists.hermes_cli/tools_config.py: Addapi_servertoPLATFORMSdict so users can customize viahermes toolsor directly in config.yaml:Validation
python -m pytest tests/gateway/test_api_server_toolset.py -n0 -q→ 12 passedpython -m pytest tests/test_model_tools.py tests/gateway/test_api_server.py tests/hermes_cli/test_tools_config.py -n0 -q→ 123 passedSupersedes #3284