All questions
Showing of 54What is an AI agent, and how is it different from a single LLM call?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
An AI agent is a system that uses a model to choose and perform actions toward a goal. It can call tools, inspect results, update its plan, and continue until it finishes or reaches a limit.
A single LLM call maps one input to one output. The surrounding application decides what happens next. An agent adds a loop and gives the model some control over the next step.
That flexibility helps with tasks whose steps cannot be fixed in advance, but it adds cost, latency, and risk. Use an agent only when dynamic decisions improve the task. Keep permissions, budgets, approvals, and stopping rules in deterministic code.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Walk me through the reason-act-observe loop that makes a system agentic.
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
The loop begins with a goal and the current state. The model decides what information or action is needed, then returns either a tool request or a final answer.
The runtime validates any tool request, executes it, and sends the result back as an observation. The model uses that new evidence to choose another action. This repeats until the task succeeds, the model stops, or the runtime reaches a turn, time, or cost limit.
Reasoning may be hidden or summarized. The important audit trail is observable: input, tool request, policy decision, result, and state change. A failed tool should become a clear observation, not a claim of success.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is tool use (function calling), and why is it called the foundation of agents?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Tool use lets a model request a function through structured output. The application describes available tools and their argument schemas. The model selects a tool and proposes arguments, but the application performs the real action.
Tools connect a model to live data and capabilities such as search, databases, calculators, code execution, and business APIs. Without them, the model can only generate content from its context.
Tool use is foundational because agents learn from results and decide what to do next. Every request must still pass validation, authorization, timeouts, and approval rules. A model-generated tool call is untrusted input, not permission to execute.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Describe the full round trip of one function call between your application and the model.
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
The application sends messages plus tool definitions containing names, descriptions, and argument schemas. The model returns a structured request with a tool name, arguments, and a call ID.
The runtime validates the schema, authenticates the user, checks policy, and executes the function. It records the outcome and sends a tool-result message linked to the same call ID. The model then uses that result to answer or request another tool.
If execution fails, return a safe, useful error instead of pretending the tool succeeded. Side-effectful tools should accept an idempotency key. Log the proposal, policy decision, execution, and response as separate events.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the difference between a deterministic workflow and an agentic workflow?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A deterministic workflow follows steps chosen by application code. Branches may depend on known rules, but the model does not decide the overall path. An agentic workflow lets a model choose actions based on the current state.
Deterministic workflows are easier to test, secure, predict, and price. Agentic workflows handle ambiguous tasks and unexpected intermediate results, but their paths vary and may loop or choose a poor tool.
Use fixed code when the process is known, especially for permissions, payments, and compliance. Add agentic decisions only where the next step truly depends on language understanding or open-ended evidence. Many reliable systems combine a deterministic shell with a small agentic step.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is ReAct, and why was it influential?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
ReAct is an agent pattern that interleaves reasoning and actions. The model considers the current problem, chooses a tool, observes the result, and continues with updated information.
The pattern was influential because it connected language-model reasoning with external evidence and actions in one understandable loop. It reduced the need for a complete plan before any real information was gathered.
Modern tool APIs may hide private reasoning and represent actions as structured calls, but the core loop remains. Production versions need stronger controls than the original prompting pattern: typed tools, permissions, step limits, idempotency, error handling, and traces of observable actions.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What role does the system prompt play in an agent?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
The system prompt defines the agent's goal, scope, behavior, and tool policy. It can explain when to use tools, when to ask for clarification, when approval is required, and how to handle missing information.
Keep the prompt concise and consistent with tool descriptions. State stopping conditions and require the agent to report failures honestly. Mark external content and tool results as untrusted data.
The prompt guides the model but cannot enforce security. Authentication, authorization, spending limits, sandboxing, and approval gates belong in the runtime. Test conflicts and injection attempts because an agent may read hostile documents while holding useful tools.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the Model Context Protocol (MCP), and what problem does it solve?
What kinds of memory can an agent have?
What is a multi-agent system, and why do most teams start with a single agent?
What is human-in-the-loop in agent design, and when is an approval gate required?
Name the major agent frameworks in 2026 and what each is best known for.
What makes a good tool definition, and how would you write its description?
How does parallel tool calling work, and what common mistake silently breaks it?
Why do structured outputs matter inside agent steps, and how do the major providers enforce them?
Compare ReAct-style interleaved reasoning with plan-then-execute. When does each win?
What is reflection in agent design, and when does it actually pay off?
Describe the supervisor (orchestrator-workers) pattern and its failure points.
What are handoffs in the OpenAI Agents SDK, and how do they differ from a supervisor calling subagents as tools?
Beyond the supervisor, what orchestration patterns should an engineer know?
Why do long-running agents exhaust their context, and what are the main mitigations?
What are subagents, and how do they help with context management?
How should an agent handle a failing tool call?
Why does idempotency matter for agent tools, and how do you achieve it?
How do you prevent an agent from looping forever?
How does evaluating an agent differ from evaluating a single-prompt LLM feature?
Which benchmarks are commonly used for agents, and what does each actually measure?
What does observability look like for an agent in production?
What levers do you have to control an agent's cost and latency?
When should you skip agent frameworks entirely, and what does the no-framework version look like?
How do you decide which tools and how many to expose to an agent, and what goes wrong with too many?
What is agentic RAG, and how does it differ from classic retrieval-augmented generation?
What is context engineering, and why is it considered the successor to prompt engineering for agents?
How does LangGraph model an agent, and what do checkpointing and interrupts buy you?
Compare LangGraph, CrewAI, and AutoGen (Microsoft Agent Framework). How do you choose?
What does the Claude Agent SDK give you beyond the raw Anthropic API, and when would you use each?
What are the core primitives of the OpenAI Agents SDK, and how do they compose?
How do computer-use agents work, and why are they harder to build reliably than API-based agents?
Compare DOM-based and vision-based browser agents. What risks do browser agents introduce?
How do you sandbox and permission an agent's tools?
What is prompt injection in the agent setting, and what is the lethal trifecta? How do you mitigate it?
Design a long-term memory system for an agent. What are write policies and why do they matter?
How does context compaction work, and what must be preserved for it to be safe?
How do agents in a multi-agent system communicate, and where does Google's A2A protocol fit?
How do you implement guardrails around a production agent?
What are the classic failure modes of deployed agents, and how do you mitigate each?
How do you handle streaming, long turns, and resumability in an agent's execution?
What are the security and trust risks of third-party MCP servers, and how would you vet one?
A product team says "we need an AI agent" for a business process. How do you decide what to actually build?
When does a multi-agent architecture actually beat a single agent, given that it multiplies token cost?
How would you make an agent that runs for hours or days durable against crashes, deploys, and restarts?
How do you build an evaluation pipeline for non-deterministic agent trajectories at scale?
Design the security architecture for an agent that operates with production credentials.
Architect the context management strategy for an agent that must work effectively over multi-day horizons.
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
47 of 54 AI Agents answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.