Convenience function to create a LeadAgent with common sub-agents for code-related tasks.
Value
A LeadAgent object
Examples
if (FALSE) { # \dontrun{
agent <- agent_with_delegation(
chat = ellmer::chat("openai/gpt-4o")
)
result <- agent$run_sync("Review the code in main.R and suggest improvements")
} # }