Agentic AI · Advanced level

Advanced level · Module 6: Multi-Agent State Management · Lesson 1 of 3

Shared and Private State

Learners decide which information all agents share and which stays private to one agent, and design the state schema accordingly.

In this lesson you will

  • Separate shared and private state
  • Design a multi-agent state schema

Key concepts

shared stateprivate scratchpadneed-to-knowstate schemastate size

The lesson

Shared state holds what several agents need: the request, the plan, validated results and the report draft. Private state holds an agent's working notes and raw tool output, which other agents do not need.

Need-to-know limits exposure: the report agent does not need raw database rows, only the validated analysis. Smaller shared state also means fewer tokens.

Write the schema explicitly, with types and owners for each field.

Step by step

  1. List every piece of information in the capstone.
  2. Mark each as shared or private, with an owner.
  3. Define the shared state schema.
  4. Measure the token size of the shared state in a typical run.

Practice activity

Design the capstone's shared and private state schema.

Expected result: A typed schema with owners and a need-to-know separation.

Check your understanding

  1. What belongs in private state?

    Show answer

    An agent's working notes and raw tool output that others do not need.

  2. Why apply need-to-know to shared state?

    Show answer

    It limits exposure of data and reduces tokens.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.