mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
Cover namespace skip parameters
This commit is contained in:
parent
f42804995b
commit
20f9a45281
1 changed files with 13 additions and 7 deletions
|
|
@ -1228,13 +1228,19 @@ class TestToolTransformation:
|
|||
)
|
||||
assert result_tool["function"]["parameters"] == namespace_tool["parameters"]
|
||||
|
||||
def test_transform_namespace_tools_without_schema_skips(self):
|
||||
"""Name-only namespace tools are skipped instead of becoming hollow functions."""
|
||||
namespace_tool = {
|
||||
"type": "namespace",
|
||||
"name": "mcp__node_repl",
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"namespace_tool",
|
||||
[
|
||||
{"type": "namespace", "name": "mcp__node_repl"},
|
||||
{
|
||||
"type": "namespace",
|
||||
"name": "mcp__node_repl",
|
||||
"description": "Runtime namespace exposed by MCP",
|
||||
},
|
||||
],
|
||||
)
|
||||
def test_transform_namespace_tools_without_schema_skips(self, namespace_tool):
|
||||
"""Namespace tools without parameters are skipped instead of becoming hollow functions."""
|
||||
(
|
||||
result_tools,
|
||||
web_search_options,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue