Practicals · Day 4

APIs, evidence and agent workflows

Four practical sessions move from one API request to repeatable analysis, checked writing, and a controlled comparison of agent systems.

← All practicals

Notebook downloads. Each blue button downloads the .ipynb file directly. No Day 4 dataset is hosted here: the notebooks retrieve public source data when they run. Folder downloads contain only notebooks, setup files, and the agent mission files.

The four sessions

01 API basics and model comparison Requestskeyscostevaluation

Call a public API, keep model keys outside the notebook, send one model request, calculate its cost, and compare model routes on the same labelled task.

02 Central-bank speeches at scale BIS speechesstructured labelsvalidation

Download the complete BIS speech archive in the notebook, filter by date, year, month, and country or author text, chart explicit climate references over time, and run an optional LLM-labelled pilot.

03 World Bank data to checked briefings data APIwritercheckerreview

Retrieve economic indicators, validate and chart the data, give a writer model a compact evidence table, and use a second provider to identify claims that need human review.

04 Compare two agent teams shared missionisolated runsacceptance tests

Give Claude Code and OpenCode with DeepSeek the same scrape–analyse–visualise–report mission. Compare delivered files with common acceptance checks before judging quality.

Shared setup

Create one Python environment for the notebooks. Copy the environment template to .env, add only the keys needed for the selected session, and start Jupyter from the practical folder. A hidden one-session key prompt is available when .env is absent.

Practical 04 additionally requires Claude Code for Run A and Node.js plus OpenCode for Run B. If only one system is available, run it and compare outputs with another group.

What the sequence teaches

  1. understand the request and response before using a model API;
  2. compare models on the same task using quality, latency, and cost;
  3. keep evidence, model outputs, and provenance connected;
  4. use a second check to prioritise human review;
  5. evaluate agent deliverables rather than accepting an agent's completion message.
Oxford · United Kingdom
University of Oxford