Learn about the shared state of Agent Teams.
team_session_state
parameter on Team
to share state between team members.
This state is available to all team members and is synchronized between them.
For example:
team_session_state
attribute in tools.
For example:
agent.team_session_state
, which allows state to propagate and persist across the entire team — even for subteams within the team. This ensures consistent shared state for all members.In contrast, tools specific to a team use team.session_state
, allowing for private, team-specific state. For example, a team leader’s tools would maintain their own session state using team.session_state.enable_agentic_context=True
.
This will allow the team leader to maintain and update the team context during the run.