Tin

Examples · learn/20-teams · 244 of 339

pipeline

examples/learn/20-teams/pipeline.tintin run examples/learn/20-teams/pipeline.tin
agent Writer { model: "mock", system: "Write a first draft." }
agent Editor { model: "mock", system: "Make the draft shorter and clearer." }

fn main() {
  // an agent is called like a function, so agents chain with |>
  let final = "a note about tin" |> Writer |> Editor
  print(final)
}