Add an R Logic Node directly to a DAG
Examples
if (FALSE) { # \dontrun{
# Adding logic nodes to a production pipeline
dag <- dag_create() |>
dag_add_llm_node("planner", "Project Manager", GeminiCLIDriver$new()) |>
dag_add_logic_node("audit_check", function(state) {
# Log state for external observability
message("Auditing current progress...")
list(status = "success", output = list(timestamp = Sys.time()))
})
} # }