MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / json_crew_project

Function json_crew_project

lib/cli/tests/test_api_keys.py:54–60  ·  view source on GitHub ↗
(folder: Path, llm: str = "openai/gpt-5.6-luna")

Source from the content-addressed store, hash-verified

52
53
54def json_crew_project(folder: Path, llm: str = "openai/gpt-5.6-luna") -> None:
55 write(folder / "pyproject.toml", JSON_CREW_PYPROJECT)
56 write(folder / "crew.jsonc", '{"agents": ["researcher"]}')
57 write(folder / "agents" / "researcher.jsonc", f'{{"llm": "{llm}"}}')
58 # Installed already, so the run starts its child without installing first.
59 write(folder / "uv.lock", "")
60 (folder / ".venv").mkdir()
61
62
63@pytest.fixture

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected