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 pageshowhide
explore
- Agents & Roles5 questions
- Tasks & Outputs6 questions
- Crews & Processes7 questions
- Tools6 questions
- Memory & Knowledge6 questions
- Flows6 questions
questions
page 2 of 2In CrewAI, what happens to a crew run when a tool's _run raises an exception?
basics
~20 sCrewAI'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.
How do you stop CrewAI memory leaking between users in a multi-tenant service?
basics
~20 sCrewAI'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.
When is Task(human_input=True) acceptable in a production CrewAI deployment?
basics
~20 sRarely. 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.
What does setting planning=True on a CrewAI Crew do, and what does it cost?
basics
~20 splanning=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.
How do you give a CrewAI agent tools from an MCP server, and what lifecycle must you manage?
basics
~20 sUse 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.
Which CrewAI agents should hold CodeInterpreterTool, and how do you contain what it runs?
basics
~20 sGive 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.
showing 31–36 of 36