Reconstruct a module from a previously pinned configuration. This allows you to load optimized modules in new sessions or different projects.
Usage
restore_module_config(config, registry = list(), trusted = FALSE)Arguments
- config
A configuration list (from
pins::pin_read())- registry
Named runtime registry used to resolve stored IDs.
- trusted
Whether embedded runtime values may be restored. The default is
FALSE.
See also
Other orchestration:
orchestration,
pin_module_config(),
pin_trace(),
pin_vitals_log(),
use_dsprrr_template(),
validate_workflow()
Examples
if (FALSE) { # \dontrun{
# Read pinned config and restore module
board <- pins::board_folder("pins")
config <- pins::pin_read(board, "sentiment-classifier-v1")
mod <- restore_module_config(config)
# Use the restored module
result <- run(mod, text = "This is great!", .llm = llm)
} # }