[`agentic_crew.runners.crewai_runner`](#module-agentic_crew.runners.crewai_runner)
CrewAI runner implementation.
This is the default and most full-featured runner. CrewAI provides:
- Hierarchical and sequential processes
- Memory and planning
- Knowledge sources
- Tool integration
- Delegation between agents
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”CrewAIRunner | Runner that uses CrewAI for crew execution. |
|---|
class agentic_crew.runners.crewai_runner.CrewAIRunner
Section titled “class agentic_crew.runners.crewai_runner.CrewAIRunner”Bases: agentic_crew.runners.base.BaseRunner
Runner that uses CrewAI for crew execution.
Initialization
Section titled “Initialization”Initialize CrewAI runner.
framework_name
Section titled “framework_name”‘crewai’
build_crew(crew_config: dict[str, Any]) → Any
Section titled “build_crew(crew_config: dict[str, Any]) → Any”Build a CrewAI Crew from configuration.
Args: crew_config: Universal crew configuration.
Returns: CrewAI Crew object.
run(crew: Any, inputs: dict[str, Any]) → str
Section titled “run(crew: Any, inputs: dict[str, Any]) → str”Execute the CrewAI crew.
Args: crew: CrewAI Crew object. inputs: Inputs for the crew.
Returns: Crew output as string.
build_agent(agent_config: dict[str, Any], tools: list | None = None) → Any
Section titled “build_agent(agent_config: dict[str, Any], tools: list | None = None) → Any”Build a CrewAI Agent.
Args: agent_config: Agent configuration. tools: Optional tools for the agent.
Returns: CrewAI Agent object.
build_task(task_config: dict[str, Any], agent: Any, context: list | None = None) → Any
Section titled “build_task(task_config: dict[str, Any], agent: Any, context: list | None = None) → Any”Build a CrewAI Task.
Args: task_config: Task configuration. agent: Agent to assign to the task. context: Optional list of tasks this task depends on.
Returns: CrewAI Task object.
_resolve_tools(tool_names: list[str]) → list
Section titled “_resolve_tools(tool_names: list[str]) → list”Resolve tool names to actual tool instances.
Args: tool_names: List of tool names from config.
Returns: List of tool instances.
_load_knowledge(knowledge_paths: list[pathlib.Path]) → list
Section titled “_load_knowledge(knowledge_paths: list[pathlib.Path]) → list”Load knowledge sources from paths.
Args: knowledge_paths: List of knowledge directory paths.
Returns: List of CrewAI knowledge source objects.