Tin

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

task-1.solution

examples/learn/15-first-agent/task-1.solution.tintin run examples/learn/15-first-agent/task-1.solution.tin
agent Helper {
  model: "mock"
  system: "You are a friendly helper. Keep answers short."
}

fn main() {
  for q in ["hi", "what can you do?"] {
    print(Helper(q))
  }
  print("turns: {Helper.turns()}")
}