A system for traversing networked nodes storing a hierarchical information to form a model input context to be communicated to an application program interface (API) over the Internet, the system comprising one or more processors and a set of non-transitory, computer-readable media storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
- receiving, over a network from a first client node, a command from a user to construct a text output associated with a first sub-data structure of a lower layer of a hierarchical data structure stored across multiple nodes of a multi-tier network architecture;
- traversing to (1) a middle layer of the hierarchical data structure to retrieve a middle set of sub-data structures linked to the first sub-data structure and (2) an upper layer of the hierarchical data structure to retrieve an upper set of sub-data structures linked to at least one sub-data structure of the middle set of sub-data structures;
- obtaining a duration protocol based on the first sub-data structure and a time constraint based on the middle set of sub-data structures;
- obtaining candidate output content by providing an input to a language model API, the input comprising the command, data of the middle set of sub-data structures, data of the upper set of sub-data structures;
- determining a result indicating that the candidate output content satisfies a time criterion by (1) determining a time metric by applying the duration protocol to the candidate output content and (2) determining that the time metric satisfies the time constraint;
- and
- updating a field of the first sub-data structure populated with the candidate output content based on the result for display at a second client node.