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

Function _agent

lib/cli/tests/test_create_crew.py:1535–1545  ·  view source on GitHub ↗
(name: str, llm: str)

Source from the content-addressed store, hash-verified

1533
1534
1535def _agent(name: str, llm: str) -> dict[str, object]:
1536 return {
1537 "name": name,
1538 "role": name.title(),
1539 "goal": "Research",
1540 "backstory": "Researcher",
1541 "llm": llm,
1542 "tools": [],
1543 "planning": False,
1544 "allow_delegation": False,
1545 }
1546
1547
1548def _record_key_prompts(monkeypatch, answers: list[str]) -> list[dict[str, object]]:

Calls 1

titleMethod · 0.80

Tested by

no test coverage detected