Parameters

ParameterTypeDefaultDescription
membersList[Union[Agent, Team]]-List of agents or teams that make up this team
modeLiteral["route", "coordinate", "collaborate"]"coordinate"Team operating mode
modelOptional[Model]NoneModel to use for the team
nameOptional[str]NoneName of the team
team_idOptional[str]NoneTeam UUID (autogenerated if not set)
user_idOptional[str]NoneID of the user interacting with this team
session_idOptional[str]NoneSession UUID (autogenerated if not set)
session_nameOptional[str]NoneSession name
session_stateOptional[Dict[str, Any]]NoneSession state (stored in the database to persist across runs)
add_state_in_messagesboolFalseIf True, add the session state variables in the user and system messages
descriptionOptional[str]NoneA description of the team that is added to the start of the system message
instructionsOptional[Union[str, List[str], Callable]]NoneList of instructions for the team
expected_outputOptional[str]NoneProvide the expected output from the team
additional_contextOptional[str]NoneAdditional context added to the end of the system message
success_criteriaOptional[str]NoneDefine the success criteria for the team
markdownboolFalseIf markdown=true, add instructions to format the output using markdown
add_datetime_to_instructionsboolFalseIf True, add the current datetime to the instructions to give the agent a sense of time
add_member_tools_to_system_messageboolTrueIf True, add the member tools to the system message
knowledgeOptional[AgentKnowledge]NoneAdd a knowledge base to the team
retrieverOptional[Callable[..., Optional[List[Dict]]]]NoneFunction to get references to add to the user_message
references_formatLiteral["json", "yaml"]"json"Format of the references
contextOptional[Dict[str, Any]]NoneUser provided context
add_contextboolFalseIf True, add the context to the user prompt
enable_agentic_contextboolFalseIf True, enable the team agent to update the team context and automatically send the team context to the members
share_member_interactionsboolFalseIf True, send all previous member interactions to members
read_team_historyboolFalseIf True, read the team history
search_knowledgeboolTrueAdd a tool that allows the Model to search the knowledge base
get_member_information_toolboolTrueAdd a tool that allows the Model to get information about the members of the team
show_tool_callsboolFalseShow tool calls in team response
response_modelOptional[Type[BaseModel]]NoneResponse model for the team response
use_json_modeboolFalseIf response_model is set, sets the response "mode" of the model, i.e. if the model should explicitly respond with a JSON object instead of a Pydantic model
parse_responseboolTrueIf True, parse the response
memoryOptional[Memory]NoneMemory for the team
enable_team_historyboolFalseIf True, enable the team history
num_of_interactions_from_historyint3Number of interactions from history
storageOptional[Storage]NoneStorage for the team
extra_dataOptional[Dict[str, Any]]NoneExtra data stored with this team
debug_modeboolFalseEnable debug logs
show_members_responsesboolFalseEnable member logs - Sets the debug_mode for team and members
monitoringboolFalseLog team information to agno.com for monitoring
telemetryboolTrueLog minimal telemetry for analytics

Functions

FunctionDescription
print_responseRun the agent and print the response
runRun the agent
aprint_responseRun the agent and print the response asynchronously
arunRun the agent asynchronously
get_session_summaryGet the session summary for the given session ID and user ID (if not provided, the current session is used)
get_user_memoriesGet the user memories for the given user ID (if not provided, the current user is used)