Home / AI Architecture & System Design

S3

Agents & LLM Applications

Building production LLM applications: tool use, agent loops, MCP, streaming, context management, rate limits and testing.

Guides

01

Prompt engineering for engineers

System prompts, few-shot examples, structured output and reasoning, treated as code you version and test.

8 min
02

Tool use, streaming and agents

How function calling works, the agent loop, streaming responses, and when an agent is the wrong choice.

11 min
03

Testing and evaluating LLM applications

Unit tests, eval suites, LLM-as-judge and regression testing for non-deterministic code.

7 min

Interview questions

30-second answer plus a full 40-minute walkthrough for each.

Q1

How does function calling / tool use work under the hood?

Junior
Q2

Implement an agent loop. What safeguards do you add?

Mid
Q3

When would you use a workflow (chained prompts) instead of an autonomous agent?

Mid
Q4

How do you handle a conversation that exceeds the context window?

Mid
Q5

How do you test code that calls an LLM?

Mid
Q6

How would you stream an LLM response to a web client?

Mid
Q7

What is MCP?

Junior
Q8

How do you handle rate limits from an LLM provider at scale?

Senior
Q9

Your prompt change improved one test case but you're unsure it's better overall. What do you do?

Mid