skip to content

CrewAI

You will learn the role-based multi-agent framework: agents defined by role, goal and backstory, tasks with expected outputs, tools, memory and knowledge, and crews running sequential or hierarchical processes. Interviewers ask about CrewAI because it makes the multi-agent design question concrete — who does what, who delegates, and what a single crew run costs.

part ofAI agent & RAG frameworksoverview, primer and where to startread it →
on this pageshow

explore

questions

page 2 of 2

In CrewAI, what happens to a crew run when a tool's _run raises an exception?

level: seniorimportance: should knowfreq 46%

basics

~20 s

CrewAI's tool-usage layer catches the exception and hands the error back to the agent as that tool call's observation, so the kickoff continues and the LLM can retry or change course. The cost is extra model turns, so bound it and return short, actionable error text yourself.

open as a page

How do you stop CrewAI memory leaking between users in a multi-tenant service?

level: principalimportance: should knowfreq 35%

basics

~20 s

CrewAI's built-in memory is scoped to a storage location, not to a user, so one shared directory means every tenant's content is retrievable by every run. Isolate by giving each tenant its own storage root and process, delegate to a user-scoped external memory provider, or run with memory disabled.

open as a page

When is Task(human_input=True) acceptable in a production CrewAI deployment?

level: principalimportance: should knowfreq 30%

basics

~20 s

Rarely. Setting human_input=True pauses the task after the agent's answer and blocks on console input for feedback, so it fits an operator running a crew interactively. A server or worker process has no console, so production approval gates belong outside the crew run.

open as a page

What does setting planning=True on a CrewAI Crew do, and what does it cost?

level: middleimportance: nice to knowfreq 33%

basics

~20 s

planning=True makes CrewAI call a planning LLM before execution, produce a step-by-step plan for the crew's tasks, and append that plan to each task's description. It costs an extra LLM call per kickoff and can bake in wrong assumptions.

open as a page

How do you give a CrewAI agent tools from an MCP server, and what lifecycle must you manage?

level: seniorimportance: nice to knowfreq 33%

basics

~20 s

Use MCPServerAdapter from crewai_tools: construct it with the server's connection parameters, and it exposes the server's tools as CrewAI tools you pass into Agent(tools=...). It holds a live connection, so use it as a context manager or call stop() in a finally block.

open as a page

Which CrewAI agents should hold CodeInterpreterTool, and how do you contain what it runs?

level: principalimportance: nice to knowfreq 28%

basics

~20 s

Give CodeInterpreterTool to one narrowly scoped agent, never to agents that also ingest untrusted text. It executes generated Python inside a Docker container by default; unsafe_mode=True runs it in the host process, which is a development-only setting.

open as a page

showing 31–36 of 36