Documentation ¶ Index ¶ func ToContext(ctx context.Context, parents Map) context.Context type Map func FromContext(ctx context.Context) Map func New(root agent.Agent) (Map, error) func (m Map) RootAgent(cur agent.Agent) agent.Agent Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToContext ¶ func ToContext(ctx context.Context, parents Map) context.Context Types ¶ type Map ¶ type Map map[string]agent.Agent func FromContext ¶ func FromContext(ctx context.Context) Map func New ¶ func New(root agent.Agent) (Map, error) New creates parent map allowing to fetch agent's parent. It ensures that agent can have at most one parent. It ensures that the root node name is not referenced again in the agent tree func (Map) RootAgent ¶ func (m Map) RootAgent(cur agent.Agent) agent.Agent RootAgent returns the root of the agent tree. Source Files ¶ View all Source files map.go Click to show internal directories. Click to hide internal directories.