Home / Topics

04

Coding with AI APIs

Practical engineering with LLM APIs: prompting, tool use, streaming, agents 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

All 11 with answers →
  1. How does function calling / tool use work under the hood?
  2. Implement an agent loop. What safeguards do you add?
  3. When would you use a workflow (chained prompts) instead of an autonomous agent?
  4. How do you handle a conversation that exceeds the context window?
  5. How do you test code that calls an LLM?