The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
"""Platform scope rules for configured toolsets."""
from typing import Set
# Toolsets without a restriction entry are available on every platform.
_TOOLSET_PLATFORM_RESTRICTIONS = {"discord": {"discord"}, "discord_admin": {"discord"}}
def toolset_allowed_for_platform(ts_key: str, platform: str) -> bool:
"""Return whether ``ts_key`` is available on ``platform``."""
allowed: set[str] | None = _TOOLSET_PLATFORM_RESTRICTIONS.get(ts_key)
return allowed is None or platform in allowed