Pipe Operator for Module Composition
Source:R/pipeline.R
grapes-greater-than-greater-than-grapes.RdChains modules together into a pipeline. The output of the left module flows into the input of the right module. When field names match between output and input, they are automatically connected.
Examples
if (FALSE) { # \dontrun{
# Simple chaining - automatic field matching
qa_pipeline <- mod_parse %>>% mod_answer %>>% mod_format
# Run the pipeline
result <- run(qa_pipeline, text = "What is 2+2?", .llm = llm)
} # }