Mid-level interview questionAsked by candidates · YouTube
Your agent is very slow. What can you do?
Model answer
Profile one run: count the model calls, tokens per call and tool latency. Then run independent tool calls in parallel, use a small fast model for routing and simple steps, cache tool results and the static prompt prefix, trim the growing history, cap the steps, and turn predictable chains into plain code. Stream progress, so users see it working.
Practise the rest
15 Agents questions, 492 in all, each with a model answer. Free.
More Agents interview questions
- What actually is an AI agent?
- LLM workflow or agent: which is better?
- What are guardrails, and where do they sit in an agent?
- What are the bottlenecks of AI agents, and how do you keep them in check?
- Design a harness for running a tool-using agent safely, and an evaluation platform on top of it.
- Design a code-review agent that combines LLM orchestration with deterministic tools.