Restores an agent saved with save_agent(): same persona, config, memory
contents, budget, and accounting. Because the config holds an
environment-variable reference rather than a key, the loaded agent works
immediately wherever that variable is set. Call, token, and tool counters
carry over, so a budget keeps binding across sessions; the wall-clock
(max_seconds) budget restarts at load.
Usage
load_agent(path, tools = list(), embed_config = NULL)Arguments
- path
File path written by
save_agent().- tools
Tools to re-attach (functions are not serialized).
- embed_config
Required only when the saved agent used
memory_recall(); the embedding config to rebuild it with.
Value
An Agent.
