MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _make_config

Function _make_config

tests/tools/test_server_tools_smoke.py:25–31  ·  view source on GitHub ↗

Minimal config object compatible with ToolBase usage in this repo. Keep it SimpleNamespace-based so it's easy to tweak scenarios.

(output_dir: str, tools: dict)

Source from the content-addressed store, hash-verified

23
24
25def _make_config(output_dir: str, tools: dict) -> SimpleNamespace:
26 """
27 Minimal config object compatible with ToolBase usage in this repo.
28 Keep it SimpleNamespace-based so it's easy to tweak scenarios.
29 """
30 return SimpleNamespace(
31 output_dir=output_dir, tools=SimpleNamespace(**tools))
32
33
34class _FakeSearchResult:

Callers 5

mainMethod · 0.85
mainMethod · 0.85
mainMethod · 0.85
mainMethod · 0.85
mainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected