Tin

Examples · learn/24-models · 273 of 339

task-2.solution

examples/learn/24-models/task-2.solution.tintin run examples/learn/24-models/task-2.solution.tin
agent Counter { model: "mock" }

fn main() {
  // The mock fills an int with the first number in the prompt, so put the answer first.
  // A real model would add 3 + 4 by itself: this tests your code, not the model.
  let pets: int = Counter("7 pets: I have 3 cats and 4 dogs. How many pets in total?")
  print(pets)
}