Learn about the shared state of Agent Teams.
session_state
parameter on Team
to share state between the team leader and team members.
This state is available to all team members and is synchronized between them.
For example:
session_state
attribute in tools.
For example:
session_state
variable is automatically passed to the tool as an argument. Any updates to it is automatically reflected in the shared state.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.enable_agentic_state
parameter to True
.
add_session_state_to_context=True
to make the session state available to the team’s context.{key}
syntax, Agno substitutes the values for you.session_id
to the team on team.run()
, it will switch to the session with the given session_id
and load any state that was set on that session.
This is useful when you want to continue a session for a specific user.