Stores a persistent system prompt or "identity" in the registry. This is useful for centralizing agent personas so they can be reused across multiple DAGs or workflows.
Examples
if (FALSE) { # \dontrun{
# Define a specific identity for a bioinformatics analyst
register_role(
name = "bio_analyst",
prompt_text = "You are a senior bioinformatician specializing in NGS data.
Always provide R code for visualization using ggplot2."
)
# Register a reviewer role
register_role(
name = "reviewer",
prompt_text = "You are a rigorous peer reviewer. Check for statistical accuracy."
)
} # }