Tin

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

task-2.solution

examples/learn/15-first-agent/task-2.solution.tintin run examples/learn/15-first-agent/task-2.solution.tin
fn main() {
  let a = agent { model: "mock" }
  let b = a.fresh()       // a copy with an empty conversation
  print(a("one"))
  print(a("two"))
  print(b("three"))
  print("a: {a.turns()}, b: {b.turns()}")
}