R6 class representing a team of agents.
nameName of the team.
membersList of registered agents (workers).
managerThe manager agent (created automatically).
default_modelDefault model ID for the team (optional).
sessionOptional shared ChatSession for the team.
new()Initialize a new AgentTeam.
AgentTeam$new(name = "AgentTeam", model = NULL, session = NULL)nameName of the team.
modelOptional default model for the team.
sessionOptional shared ChatSession (or SharedSession).
A new AgentTeam object.
register_agent()Register an agent to the team.
AgentTeam$register_agent(
name,
description,
skills = NULL,
tools = NULL,
system_prompt = NULL,
model = NULL
)nameName of the agent.
descriptionDescription of the agent's capabilities.
skillsCharacter vector of skills to load for this agent.
toolsList of explicit Tool objects.
system_promptOptional system prompt override.
modelOptional default model for this agent (overrides team default).
Self (for chaining).
run()Run the team on a task.
AgentTeam$run(task, model = NULL, session = NULL)taskThe task instruction.
modelModel ID to use for the Manager.
sessionOptional shared ChatSession (or SharedSession).
The result from the Manager agent.
clone()The objects of this class are cloneable with this method.
AgentTeam$clone(deep = FALSE)deepWhether to make a deep clone.