For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetModuleTree

Get the module hierarchy as a tree.

Each node carries the module's own record data (see {@code getModuleInfo()}) plus a {@code children} struct of any modules nested inside it, recursively.

With no argument, returns every top-level module. Nested modules are found under their parent's {@code children} entry, not at the top level.

Passed a module name, returns the tree rooted at that module instead: its own data plus its nested modules, recursively. An unregistered module name returns an empty struct.

Method Signature

GetModuleTree(module=[string])

Arguments

Argument
Type
Required
Description
Default

module

string

false

The name of the module to root the tree at. If not provided, the full tree of every top-level module is returned.

Examples

Last updated

Was this helpful?