Tin

Examples · learn/15-first-agent · 214 of 339

typed

examples/learn/15-first-agent/typed.tintin run examples/learn/15-first-agent/typed.tin
agent Counter { model: "mock" }

fn main() {
  // Ask for an int, get an int. Chapter 17 is about this.
  let n: int = Counter("how many legs does a spider have? 8")
  print(n + 1)
}