Examples · learn/23-replay · 267 of 339
task-2.solution.test
run: --replay tests/tapes/agents-05-claude.json
tin run examples/learn/23-replay/task-2.solution.test.tin// run: --replay tests/tapes/agents-05-claude.json
type Language = {
name: string
/// The year it first appeared
year: int
paradigm: Paradigm
/// One sentence on what it is known for
knownFor: string
}
type Paradigm = | Functional | ObjectOriented | Procedural | Logic | Multi
agent Historian {
system: "You are a historian of programming languages. Be accurate and brief."
}
test "three languages, all from before 1975" {
let languages: Language[] = Historian("Name three influential programming languages from before 1975.")
assertEq(languages.len, 3)
assert(languages.all(l => l.year < 1975))
}