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