MCPcopy Create free account
hub / github.com/BerriAI/litellm / _write_strategy_folder

Function _write_strategy_folder

tests/rust-python-harness/cli/test_cli.py:75–84  ·  view source on GitHub ↗
(
    root: Path,
    name: str = "example",
    *,
    init_source: str | None = None,
)

Source from the content-addressed store, hash-verified

73
74
75def _write_strategy_folder(
76 root: Path,
77 name: str = "example",
78 *,
79 init_source: str | None = None,
80) -> Path:
81 folder: Final = root / name
82 folder.mkdir(parents=True)
83 (folder / "__init__.py").write_text(init_source or _strategy_source(), encoding="utf-8")
84 return folder
85
86
87def test_should_load_surface_aware_and_function_only_strategies() -> None:

Calls 1

_strategy_sourceFunction · 0.85

Tested by

no test coverage detected