Examples · learn/15-first-agent · 212 of 339
task-2.solution
tin run examples/learn/15-first-agent/task-2.solution.tinfn 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()}")
}