Chains agents in order: agent1 -> agent2 -> ... -> END.
See also
Other convenience:
graph_react(),
graph_supervisor()
Examples
if (FALSE) { # \dontrun{
chat1 <- ellmer::chat_openai(model = "gpt-4o")
chat2 <- ellmer::chat_openai(model = "gpt-4o")
graph <- graph_pipeline(agent("drafter", chat1), agent("reviewer", chat2))
graph$invoke(list(messages = list("Write a poem")))
} # }