Tin

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

hello

examples/learn/15-first-agent/hello.tintin run examples/learn/15-first-agent/hello.tin
agent Echo {
  model: "mock"
  system: "You repeat what you are told."
}

fn main() {
  let answer = Echo("hello, agent")    // an agent is called like a function
  print(answer)
}