workflows.services.context_catalog ================================== .. py:module:: workflows.services.context_catalog .. autoapi-nested-parse:: Helpers to build a flattened catalog of context keys for the UI. Module Contents --------------- .. py:data:: MAX_SAMPLE_LEN :value: 160 .. py:data:: MAX_ITEMS :value: 500 .. py:function:: build_catalog(ctx) Build catalog rows (key/label/sample) for use in the UI. :param ctx: The workflow context dictionary (``ctx``) as produced by ``build_context``. :returns: A structure containing usage information and a list of variable descriptors under the ``"vars"`` key. Each descriptor has ``"key"``, ``"label"``, and ``"sample"`` fields. :rtype: dict[str, Any]