docs(toolsets): clarify get_toolset static-view returns None for registry-derived aliases too

Follow-up on the #56480 salvage: the include_registry=False docstring said
None is returned only for registry/MCP-only toolsets; it also applies to
registry-derived aliases, which have no static TOOLSETS counterpart.
This commit is contained in:
kshitijk4poor 2026-07-02 13:04:23 +05:30 committed by kshitij
parent 80733413f9
commit 46273a55a8

View file

@ -599,8 +599,10 @@ def get_toolset(name: str, *, include_registry: bool = True) -> Optional[Dict[st
Returns:
Dict: Toolset definition with description, tools, and includes
None: If toolset not found (registry-only toolsets have no static view,
so they return None when include_registry=False)
None: If toolset not found. With include_registry=False the static
view only recognizes names literally present in ``TOOLSETS``, so
registry/MCP-only toolsets AND registry-derived aliases return None
(they have no static counterpart).
"""
toolset = TOOLSETS.get(name)