# How can I design a hierarchy of agents each of which with different goals?

I read some light material earlier about the possibility of building a hierarchy of agents, where the agents at the leaves solve primitive tasks while higher-level agents are optimized for orchestrating direct-descendant agents.

According to my understanding, each agent would have different objective functions and possible moves.

How can I design such a hierarchy of agents each of which with different goals? Are there any examples?