View source: R/agent_registry.R
| create_agent_registry | R Documentation |
Factory function to create a new AgentRegistry.
create_agent_registry(agents = NULL)
agents |
Optional list of Agent objects to register immediately. |
An AgentRegistry object.
if (interactive()) {
# Create registry with agents
cleaner <- create_agent("Cleaner", "Cleans data")
plotter <- create_agent("Plotter", "Creates visualizations")
registry <- create_agent_registry(list(cleaner, plotter))
print(registry$list_agents()) # "Cleaner", "Plotter"
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.