Examples · learn/20-teams · 244 of 339
pipeline
tin run examples/learn/20-teams/pipeline.tinagent 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)
}