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

Function _definition

lib/cli/tests/test_agent_tools.py:30–33  ·  view source on GitHub ↗
(project: Path)

Source from the content-addressed store, hash-verified

28
29
30def _definition(project: Path) -> dict:
31 if (project / "agent.json").exists():
32 return json.loads((project / "agent.json").read_text())
33 return yaml.safe_load((project / "agent.yaml").read_text())
34
35
36@pytest.fixture

Calls 1

read_textMethod · 0.80

Tested by

no test coverage detected