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:
parent
80733413f9
commit
46273a55a8
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue