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

Function _agent

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

Source from the content-addressed store, hash-verified

1600
1601
1602def _agent(name: str, llm: str) -> dict[str, object]:
1603 return {
1604 "name": name,
1605 "role": name.title(),
1606 "goal": "Research",
1607 "backstory": "Researcher",
1608 "llm": llm,
1609 "tools": [],
1610 "planning": False,
1611 "allow_delegation": False,
1612 }
1613
1614
1615def _record_key_prompts(monkeypatch, answers: list[str]) -> list[dict[str, object]]:

Calls 1

titleMethod · 0.80

Tested by

no test coverage detected