Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Input Format\n\nYou will receive files in this XML format:\n\n```\n<FILE path=\"src/hello.ts\" name=\"hello.ts\">\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n</FILE>\n\n<FILE path=\"src/utils.ts\" name=\"utils.ts\">\n001|export function add(a, b) {\n002|  return a + b\n003|}\n</FILE>\n```\n\nEach file has:\n- **path**: Full file path\n- **name**: File name\n- **Numbered lines**: Format is `NNN|content` where NNN is the ORIGINAL line number (1-based)\n\n## Output Format\n\nGenerate patches for EACH file that needs modification using this EXACT XML format:\n\n```\n<FILE path=\"src/hello.ts\">\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n</FILE>\n\n<FILE path=\"src/utils.ts\">\n◼<1|/**\n * Adds two numbers\n */\n</FILE>\n```\n\n**CRITICAL RULES**:\n1. Each `<FILE>` tag MUST include the exact `path` attribute from the input\n2. Put patch operations for EACH file inside its own `<FILE>...</FILE>` block\n3. If a file doesn't need changes, omit its `<FILE>` block entirely\n4. DO NOT mix patches from different files\n5. DO NOT include line numbers or any text outside the patch operations\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits).\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')`\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}`\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can span multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d`\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12`\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10`\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input (001, 002, etc.)\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations inside `<FILE>` tags\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n## Example\n\n**Input:**\n```\n<FILE path=\"src/math.ts\" name=\"math.ts\">\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n</FILE>\n```\n\n**Task:** Change variable names from x,y to a,b\n\n**Output:**\n```\n<FILE path=\"src/math.ts\">\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n</FILE>\n```\n\n## Your Task\n\nGenerate ONLY the `<FILE>` blocks with patch operations. Do not include explanations, comments, or any other text.","role":"system"},{"content":"Instructions: replace all TODO comments with DONE comments\n\n<FILE path=\"src/giant.ts\" name=\"giant.ts\" (PARTIAL: lines 1651-2002 of 2002 total lines)>\n1651|  const variable1649 = 1649\n1652|  const variable1650 = 1650\n1653|  const variable1651 = 1651\n1654|  const variable1652 = 1652\n1655|  const variable1653 = 1653\n1656|  const variable1654 = 1654\n1657|  const variable1655 = 1655\n1658|  const variable1656 = 1656\n1659|  const variable1657 = 1657\n1660|  const variable1658 = 1658\n1661|  const variable1659 = 1659\n1662|  const variable1660 = 1660\n1663|  const variable1661 = 1661\n1664|  const variable1662 = 1662\n1665|  const variable1663 = 1663\n1666|  const variable1664 = 1664\n1667|  const variable1665 = 1665\n1668|  const variable1666 = 1666\n1669|  const variable1667 = 1667\n1670|  const variable1668 = 1668\n1671|  const variable1669 = 1669\n1672|  const variable1670 = 1670\n1673|  const variable1671 = 1671\n1674|  const variable1672 = 1672\n1675|  const variable1673 = 1673\n1676|  const variable1674 = 1674\n1677|  const variable1675 = 1675\n1678|  const variable1676 = 1676\n1679|  const variable1677 = 1677\n1680|  const variable1678 = 1678\n1681|  const variable1679 = 1679\n1682|  const variable1680 = 1680\n1683|  const variable1681 = 1681\n1684|  const variable1682 = 1682\n1685|  const variable1683 = 1683\n1686|  const variable1684 = 1684\n1687|  const variable1685 = 1685\n1688|  const variable1686 = 1686\n1689|  const variable1687 = 1687\n1690|  const variable1688 = 1688\n1691|  const variable1689 = 1689\n1692|  const variable1690 = 1690\n1693|  const variable1691 = 1691\n1694|  const variable1692 = 1692\n1695|  const variable1693 = 1693\n1696|  const variable1694 = 1694\n1697|  const variable1695 = 1695\n1698|  const variable1696 = 1696\n1699|  const variable1697 = 1697\n1700|  const variable1698 = 1698\n1701|  const variable1699 = 1699\n1702|  // TODO: section 17\n1703|  const variable1701 = 1701\n1704|  const variable1702 = 1702\n1705|  const variable1703 = 1703\n1706|  const variable1704 = 1704\n1707|  const variable1705 = 1705\n1708|  const variable1706 = 1706\n1709|  const variable1707 = 1707\n1710|  const variable1708 = 1708\n1711|  const variable1709 = 1709\n1712|  const variable1710 = 1710\n1713|  const variable1711 = 1711\n1714|  const variable1712 = 1712\n1715|  const variable1713 = 1713\n1716|  const variable1714 = 1714\n1717|  const variable1715 = 1715\n1718|  const variable1716 = 1716\n1719|  const variable1717 = 1717\n1720|  const variable1718 = 1718\n1721|  const variable1719 = 1719\n1722|  const variable1720 = 1720\n1723|  const variable1721 = 1721\n1724|  const variable1722 = 1722\n1725|  const variable1723 = 1723\n1726|  const variable1724 = 1724\n1727|  const variable1725 = 1725\n1728|  const variable1726 = 1726\n1729|  const variable1727 = 1727\n1730|  const variable1728 = 1728\n1731|  const variable1729 = 1729\n1732|  const variable1730 = 1730\n1733|  const variable1731 = 1731\n1734|  const variable1732 = 1732\n1735|  const variable1733 = 1733\n1736|  const variable1734 = 1734\n1737|  const variable1735 = 1735\n1738|  const variable1736 = 1736\n1739|  const variable1737 = 1737\n1740|  const variable1738 = 1738\n1741|  const variable1739 = 1739\n1742|  const variable1740 = 1740\n1743|  const variable1741 = 1741\n1744|  const variable1742 = 1742\n1745|  const variable1743 = 1743\n1746|  const variable1744 = 1744\n1747|  const variable1745 = 1745\n1748|  const variable1746 = 1746\n1749|  const variable1747 = 1747\n1750|  const variable1748 = 1748\n1751|  const variable1749 = 1749\n1752|  const variable1750 = 1750\n1753|  const variable1751 = 1751\n1754|  const variable1752 = 1752\n1755|  const variable1753 = 1753\n1756|  const variable1754 = 1754\n1757|  const variable1755 = 1755\n1758|  const variable1756 = 1756\n1759|  const variable1757 = 1757\n1760|  const variable1758 = 1758\n1761|  const variable1759 = 1759\n1762|  const variable1760 = 1760\n1763|  const variable1761 = 1761\n1764|  const variable1762 = 1762\n1765|  const variable1763 = 1763\n1766|  const variable1764 = 1764\n1767|  const variable1765 = 1765\n1768|  const variable1766 = 1766\n1769|  const variable1767 = 1767\n1770|  const variable1768 = 1768\n1771|  const variable1769 = 1769\n1772|  const variable1770 = 1770\n1773|  const variable1771 = 1771\n1774|  const variable1772 = 1772\n1775|  const variable1773 = 1773\n1776|  const variable1774 = 1774\n1777|  const variable1775 = 1775\n1778|  const variable1776 = 1776\n1779|  const variable1777 = 1777\n1780|  const variable1778 = 1778\n1781|  const variable1779 = 1779\n1782|  const variable1780 = 1780\n1783|  const variable1781 = 1781\n1784|  const variable1782 = 1782\n1785|  const variable1783 = 1783\n1786|  const variable1784 = 1784\n1787|  const variable1785 = 1785\n1788|  const variable1786 = 1786\n1789|  const variable1787 = 1787\n1790|  const variable1788 = 1788\n1791|  const variable1789 = 1789\n1792|  const variable1790 = 1790\n1793|  const variable1791 = 1791\n1794|  const variable1792 = 1792\n1795|  const variable1793 = 1793\n1796|  const variable1794 = 1794\n1797|  const variable1795 = 1795\n1798|  const variable1796 = 1796\n1799|  const variable1797 = 1797\n1800|  const variable1798 = 1798\n1801|  const variable1799 = 1799\n1802|  // TODO: section 18\n1803|  const variable1801 = 1801\n1804|  const variable1802 = 1802\n1805|  const variable1803 = 1803\n1806|  const variable1804 = 1804\n1807|  const variable1805 = 1805\n1808|  const variable1806 = 1806\n1809|  const variable1807 = 1807\n1810|  const variable1808 = 1808\n1811|  const variable1809 = 1809\n1812|  const variable1810 = 1810\n1813|  const variable1811 = 1811\n1814|  const variable1812 = 1812\n1815|  const variable1813 = 1813\n1816|  const variable1814 = 1814\n1817|  const variable1815 = 1815\n1818|  const variable1816 = 1816\n1819|  const variable1817 = 1817\n1820|  const variable1818 = 1818\n1821|  const variable1819 = 1819\n1822|  const variable1820 = 1820\n1823|  const variable1821 = 1821\n1824|  const variable1822 = 1822\n1825|  const variable1823 = 1823\n1826|  const variable1824 = 1824\n1827|  const variable1825 = 1825\n1828|  const variable1826 = 1826\n1829|  const variable1827 = 1827\n1830|  const variable1828 = 1828\n1831|  const variable1829 = 1829\n1832|  const variable1830 = 1830\n1833|  const variable1831 = 1831\n1834|  const variable1832 = 1832\n1835|  const variable1833 = 1833\n1836|  const variable1834 = 1834\n1837|  const variable1835 = 1835\n1838|  const variable1836 = 1836\n1839|  const variable1837 = 1837\n1840|  const variable1838 = 1838\n1841|  const variable1839 = 1839\n1842|  const variable1840 = 1840\n1843|  const variable1841 = 1841\n1844|  const variable1842 = 1842\n1845|  const variable1843 = 1843\n1846|  const variable1844 = 1844\n1847|  const variable1845 = 1845\n1848|  const variable1846 = 1846\n1849|  const variable1847 = 1847\n1850|  const variable1848 = 1848\n1851|  const variable1849 = 1849\n1852|  const variable1850 = 1850\n1853|  const variable1851 = 1851\n1854|  const variable1852 = 1852\n1855|  const variable1853 = 1853\n1856|  const variable1854 = 1854\n1857|  const variable1855 = 1855\n1858|  const variable1856 = 1856\n1859|  const variable1857 = 1857\n1860|  const variable1858 = 1858\n1861|  const variable1859 = 1859\n1862|  const variable1860 = 1860\n1863|  const variable1861 = 1861\n1864|  const variable1862 = 1862\n1865|  const variable1863 = 1863\n1866|  const variable1864 = 1864\n1867|  const variable1865 = 1865\n1868|  const variable1866 = 1866\n1869|  const variable1867 = 1867\n1870|  const variable1868 = 1868\n1871|  const variable1869 = 1869\n1872|  const variable1870 = 1870\n1873|  const variable1871 = 1871\n1874|  const variable1872 = 1872\n1875|  const variable1873 = 1873\n1876|  const variable1874 = 1874\n1877|  const variable1875 = 1875\n1878|  const variable1876 = 1876\n1879|  const variable1877 = 1877\n1880|  const variable1878 = 1878\n1881|  const variable1879 = 1879\n1882|  const variable1880 = 1880\n1883|  const variable1881 = 1881\n1884|  const variable1882 = 1882\n1885|  const variable1883 = 1883\n1886|  const variable1884 = 1884\n1887|  const variable1885 = 1885\n1888|  const variable1886 = 1886\n1889|  const variable1887 = 1887\n1890|  const variable1888 = 1888\n1891|  const variable1889 = 1889\n1892|  const variable1890 = 1890\n1893|  const variable1891 = 1891\n1894|  const variable1892 = 1892\n1895|  const variable1893 = 1893\n1896|  const variable1894 = 1894\n1897|  const variable1895 = 1895\n1898|  const variable1896 = 1896\n1899|  const variable1897 = 1897\n1900|  const variable1898 = 1898\n1901|  const variable1899 = 1899\n1902|  // TODO: section 19\n1903|  const variable1901 = 1901\n1904|  const variable1902 = 1902\n1905|  const variable1903 = 1903\n1906|  const variable1904 = 1904\n1907|  const variable1905 = 1905\n1908|  const variable1906 = 1906\n1909|  const variable1907 = 1907\n1910|  const variable1908 = 1908\n1911|  const variable1909 = 1909\n1912|  const variable1910 = 1910\n1913|  const variable1911 = 1911\n1914|  const variable1912 = 1912\n1915|  const variable1913 = 1913\n1916|  const variable1914 = 1914\n1917|  const variable1915 = 1915\n1918|  const variable1916 = 1916\n1919|  const variable1917 = 1917\n1920|  const variable1918 = 1918\n1921|  const variable1919 = 1919\n1922|  const variable1920 = 1920\n1923|  const variable1921 = 1921\n1924|  const variable1922 = 1922\n1925|  const variable1923 = 1923\n1926|  const variable1924 = 1924\n1927|  const variable1925 = 1925\n1928|  const variable1926 = 1926\n1929|  const variable1927 = 1927\n1930|  const variable1928 = 1928\n1931|  const variable1929 = 1929\n1932|  const variable1930 = 1930\n1933|  const variable1931 = 1931\n1934|  const variable1932 = 1932\n1935|  const variable1933 = 1933\n1936|  const variable1934 = 1934\n1937|  const variable1935 = 1935\n1938|  const variable1936 = 1936\n1939|  const variable1937 = 1937\n1940|  const variable1938 = 1938\n1941|  const variable1939 = 1939\n1942|  const variable1940 = 1940\n1943|  const variable1941 = 1941\n1944|  const variable1942 = 1942\n1945|  const variable1943 = 1943\n1946|  const variable1944 = 1944\n1947|  const variable1945 = 1945\n1948|  const variable1946 = 1946\n1949|  const variable1947 = 1947\n1950|  const variable1948 = 1948\n1951|  const variable1949 = 1949\n1952|  const variable1950 = 1950\n1953|  const variable1951 = 1951\n1954|  const variable1952 = 1952\n1955|  const variable1953 = 1953\n1956|  const variable1954 = 1954\n1957|  const variable1955 = 1955\n1958|  const variable1956 = 1956\n1959|  const variable1957 = 1957\n1960|  const variable1958 = 1958\n1961|  const variable1959 = 1959\n1962|  const variable1960 = 1960\n1963|  const variable1961 = 1961\n1964|  const variable1962 = 1962\n1965|  const variable1963 = 1963\n1966|  const variable1964 = 1964\n1967|  const variable1965 = 1965\n1968|  const variable1966 = 1966\n1969|  const variable1967 = 1967\n1970|  const variable1968 = 1968\n1971|  const variable1969 = 1969\n1972|  const variable1970 = 1970\n1973|  const variable1971 = 1971\n1974|  const variable1972 = 1972\n1975|  const variable1973 = 1973\n1976|  const variable1974 = 1974\n1977|  const variable1975 = 1975\n1978|  const variable1976 = 1976\n1979|  const variable1977 = 1977\n1980|  const variable1978 = 1978\n1981|  const variable1979 = 1979\n1982|  const variable1980 = 1980\n1983|  const variable1981 = 1981\n1984|  const variable1982 = 1982\n1985|  const variable1983 = 1983\n1986|  const variable1984 = 1984\n1987|  const variable1985 = 1985\n1988|  const variable1986 = 1986\n1989|  const variable1987 = 1987\n1990|  const variable1988 = 1988\n1991|  const variable1989 = 1989\n1992|  const variable1990 = 1990\n1993|  const variable1991 = 1991\n1994|  const variable1992 = 1992\n1995|  const variable1993 = 1993\n1996|  const variable1994 = 1994\n1997|  const variable1995 = 1995\n1998|  const variable1996 = 1996\n1999|  const variable1997 = 1997\n2000|  const variable1998 = 1998\n2001|  const variable1999 = 1999\n2002|}\n</FILE>\n\nGenerate patches for each file that needs modification:","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":[]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
<FILE path="src/giant.ts">
◼=1702|// DONE: section 17
◼=1802|// DONE: section 18
◼=1902|// DONE: section 19
</FILE>


Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Input Format\n\nYou will receive files in this XML format:\n\n```\n<FILE path=\"src/hello.ts\" name=\"hello.ts\">\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n</FILE>\n\n<FILE path=\"src/utils.ts\" name=\"utils.ts\">\n001|export function add(a, b) {\n002|  return a + b\n003|}\n</FILE>\n```\n\nEach file has:\n- **path**: Full file path\n- **name**: File name\n- **Numbered lines**: Format is `NNN|content` where NNN is the ORIGINAL line number (1-based)\n\n## Output Format\n\nGenerate patches for EACH file that needs modification using this EXACT XML format:\n\n```\n<FILE path=\"src/hello.ts\">\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n</FILE>\n\n<FILE path=\"src/utils.ts\">\n◼<1|/**\n * Adds two numbers\n */\n</FILE>\n```\n\n**CRITICAL RULES**:\n1. Each `<FILE>` tag MUST include the exact `path` attribute from the input\n2. Put patch operations for EACH file inside its own `<FILE>...</FILE>` block\n3. If a file doesn't need changes, omit its `<FILE>` block entirely\n4. DO NOT mix patches from different files\n5. DO NOT include line numbers or any text outside the patch operations\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits).\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')`\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}`\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can span multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d`\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12`\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10`\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input (001, 002, etc.)\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations inside `<FILE>` tags\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n## Example\n\n**Input:**\n```\n<FILE path=\"src/math.ts\" name=\"math.ts\">\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n</FILE>\n```\n\n**Task:** Change variable names from x,y to a,b\n\n**Output:**\n```\n<FILE path=\"src/math.ts\">\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n</FILE>\n```\n\n## Your Task\n\nGenerate ONLY the `<FILE>` blocks with patch operations. Do not include explanations, comments, or any other text.","role":"system"},{"content":"Instructions: replace all TODO comments with DONE comments\n\n<FILE path=\"src/giant.ts\" name=\"giant.ts\" (PARTIAL: lines 1101-1650 of 2002 total lines)>\n1101|  const variable1099 = 1099\n1102|  // TODO: section 11\n1103|  const variable1101 = 1101\n1104|  const variable1102 = 1102\n1105|  const variable1103 = 1103\n1106|  const variable1104 = 1104\n1107|  const variable1105 = 1105\n1108|  const variable1106 = 1106\n1109|  const variable1107 = 1107\n1110|  const variable1108 = 1108\n1111|  const variable1109 = 1109\n1112|  const variable1110 = 1110\n1113|  const variable1111 = 1111\n1114|  const variable1112 = 1112\n1115|  const variable1113 = 1113\n1116|  const variable1114 = 1114\n1117|  const variable1115 = 1115\n1118|  const variable1116 = 1116\n1119|  const variable1117 = 1117\n1120|  const variable1118 = 1118\n1121|  const variable1119 = 1119\n1122|  const variable1120 = 1120\n1123|  const variable1121 = 1121\n1124|  const variable1122 = 1122\n1125|  const variable1123 = 1123\n1126|  const variable1124 = 1124\n1127|  const variable1125 = 1125\n1128|  const variable1126 = 1126\n1129|  const variable1127 = 1127\n1130|  const variable1128 = 1128\n1131|  const variable1129 = 1129\n1132|  const variable1130 = 1130\n1133|  const variable1131 = 1131\n1134|  const variable1132 = 1132\n1135|  const variable1133 = 1133\n1136|  const variable1134 = 1134\n1137|  const variable1135 = 1135\n1138|  const variable1136 = 1136\n1139|  const variable1137 = 1137\n1140|  const variable1138 = 1138\n1141|  const variable1139 = 1139\n1142|  const variable1140 = 1140\n1143|  const variable1141 = 1141\n1144|  const variable1142 = 1142\n1145|  const variable1143 = 1143\n1146|  const variable1144 = 1144\n1147|  const variable1145 = 1145\n1148|  const variable1146 = 1146\n1149|  const variable1147 = 1147\n1150|  const variable1148 = 1148\n1151|  const variable1149 = 1149\n1152|  const variable1150 = 1150\n1153|  const variable1151 = 1151\n1154|  const variable1152 = 1152\n1155|  const variable1153 = 1153\n1156|  const variable1154 = 1154\n1157|  const variable1155 = 1155\n1158|  const variable1156 = 1156\n1159|  const variable1157 = 1157\n1160|  const variable1158 = 1158\n1161|  const variable1159 = 1159\n1162|  const variable1160 = 1160\n1163|  const variable1161 = 1161\n1164|  const variable1162 = 1162\n1165|  const variable1163 = 1163\n1166|  const variable1164 = 1164\n1167|  const variable1165 = 1165\n1168|  const variable1166 = 1166\n1169|  const variable1167 = 1167\n1170|  const variable1168 = 1168\n1171|  const variable1169 = 1169\n1172|  const variable1170 = 1170\n1173|  const variable1171 = 1171\n1174|  const variable1172 = 1172\n1175|  const variable1173 = 1173\n1176|  const variable1174 = 1174\n1177|  const variable1175 = 1175\n1178|  const variable1176 = 1176\n1179|  const variable1177 = 1177\n1180|  const variable1178 = 1178\n1181|  const variable1179 = 1179\n1182|  const variable1180 = 1180\n1183|  const variable1181 = 1181\n1184|  const variable1182 = 1182\n1185|  const variable1183 = 1183\n1186|  const variable1184 = 1184\n1187|  const variable1185 = 1185\n1188|  const variable1186 = 1186\n1189|  const variable1187 = 1187\n1190|  const variable1188 = 1188\n1191|  const variable1189 = 1189\n1192|  const variable1190 = 1190\n1193|  const variable1191 = 1191\n1194|  const variable1192 = 1192\n1195|  const variable1193 = 1193\n1196|  const variable1194 = 1194\n1197|  const variable1195 = 1195\n1198|  const variable1196 = 1196\n1199|  const variable1197 = 1197\n1200|  const variable1198 = 1198\n1201|  const variable1199 = 1199\n1202|  // TODO: section 12\n1203|  const variable1201 = 1201\n1204|  const variable1202 = 1202\n1205|  const variable1203 = 1203\n1206|  const variable1204 = 1204\n1207|  const variable1205 = 1205\n1208|  const variable1206 = 1206\n1209|  const variable1207 = 1207\n1210|  const variable1208 = 1208\n1211|  const variable1209 = 1209\n1212|  const variable1210 = 1210\n1213|  const variable1211 = 1211\n1214|  const variable1212 = 1212\n1215|  const variable1213 = 1213\n1216|  const variable1214 = 1214\n1217|  const variable1215 = 1215\n1218|  const variable1216 = 1216\n1219|  const variable1217 = 1217\n1220|  const variable1218 = 1218\n1221|  const variable1219 = 1219\n1222|  const variable1220 = 1220\n1223|  const variable1221 = 1221\n1224|  const variable1222 = 1222\n1225|  const variable1223 = 1223\n1226|  const variable1224 = 1224\n1227|  const variable1225 = 1225\n1228|  const variable1226 = 1226\n1229|  const variable1227 = 1227\n1230|  const variable1228 = 1228\n1231|  const variable1229 = 1229\n1232|  const variable1230 = 1230\n1233|  const variable1231 = 1231\n1234|  const variable1232 = 1232\n1235|  const variable1233 = 1233\n1236|  const variable1234 = 1234\n1237|  const variable1235 = 1235\n1238|  const variable1236 = 1236\n1239|  const variable1237 = 1237\n1240|  const variable1238 = 1238\n1241|  const variable1239 = 1239\n1242|  const variable1240 = 1240\n1243|  const variable1241 = 1241\n1244|  const variable1242 = 1242\n1245|  const variable1243 = 1243\n1246|  const variable1244 = 1244\n1247|  const variable1245 = 1245\n1248|  const variable1246 = 1246\n1249|  const variable1247 = 1247\n1250|  const variable1248 = 1248\n1251|  const variable1249 = 1249\n1252|  const variable1250 = 1250\n1253|  const variable1251 = 1251\n1254|  const variable1252 = 1252\n1255|  const variable1253 = 1253\n1256|  const variable1254 = 1254\n1257|  const variable1255 = 1255\n1258|  const variable1256 = 1256\n1259|  const variable1257 = 1257\n1260|  const variable1258 = 1258\n1261|  const variable1259 = 1259\n1262|  const variable1260 = 1260\n1263|  const variable1261 = 1261\n1264|  const variable1262 = 1262\n1265|  const variable1263 = 1263\n1266|  const variable1264 = 1264\n1267|  const variable1265 = 1265\n1268|  const variable1266 = 1266\n1269|  const variable1267 = 1267\n1270|  const variable1268 = 1268\n1271|  const variable1269 = 1269\n1272|  const variable1270 = 1270\n1273|  const variable1271 = 1271\n1274|  const variable1272 = 1272\n1275|  const variable1273 = 1273\n1276|  const variable1274 = 1274\n1277|  const variable1275 = 1275\n1278|  const variable1276 = 1276\n1279|  const variable1277 = 1277\n1280|  const variable1278 = 1278\n1281|  const variable1279 = 1279\n1282|  const variable1280 = 1280\n1283|  const variable1281 = 1281\n1284|  const variable1282 = 1282\n1285|  const variable1283 = 1283\n1286|  const variable1284 = 1284\n1287|  const variable1285 = 1285\n1288|  const variable1286 = 1286\n1289|  const variable1287 = 1287\n1290|  const variable1288 = 1288\n1291|  const variable1289 = 1289\n1292|  const variable1290 = 1290\n1293|  const variable1291 = 1291\n1294|  const variable1292 = 1292\n1295|  const variable1293 = 1293\n1296|  const variable1294 = 1294\n1297|  const variable1295 = 1295\n1298|  const variable1296 = 1296\n1299|  const variable1297 = 1297\n1300|  const variable1298 = 1298\n1301|  const variable1299 = 1299\n1302|  // TODO: section 13\n1303|  const variable1301 = 1301\n1304|  const variable1302 = 1302\n1305|  const variable1303 = 1303\n1306|  const variable1304 = 1304\n1307|  const variable1305 = 1305\n1308|  const variable1306 = 1306\n1309|  const variable1307 = 1307\n1310|  const variable1308 = 1308\n1311|  const variable1309 = 1309\n1312|  const variable1310 = 1310\n1313|  const variable1311 = 1311\n1314|  const variable1312 = 1312\n1315|  const variable1313 = 1313\n1316|  const variable1314 = 1314\n1317|  const variable1315 = 1315\n1318|  const variable1316 = 1316\n1319|  const variable1317 = 1317\n1320|  const variable1318 = 1318\n1321|  const variable1319 = 1319\n1322|  const variable1320 = 1320\n1323|  const variable1321 = 1321\n1324|  const variable1322 = 1322\n1325|  const variable1323 = 1323\n1326|  const variable1324 = 1324\n1327|  const variable1325 = 1325\n1328|  const variable1326 = 1326\n1329|  const variable1327 = 1327\n1330|  const variable1328 = 1328\n1331|  const variable1329 = 1329\n1332|  const variable1330 = 1330\n1333|  const variable1331 = 1331\n1334|  const variable1332 = 1332\n1335|  const variable1333 = 1333\n1336|  const variable1334 = 1334\n1337|  const variable1335 = 1335\n1338|  const variable1336 = 1336\n1339|  const variable1337 = 1337\n1340|  const variable1338 = 1338\n1341|  const variable1339 = 1339\n1342|  const variable1340 = 1340\n1343|  const variable1341 = 1341\n1344|  const variable1342 = 1342\n1345|  const variable1343 = 1343\n1346|  const variable1344 = 1344\n1347|  const variable1345 = 1345\n1348|  const variable1346 = 1346\n1349|  const variable1347 = 1347\n1350|  const variable1348 = 1348\n1351|  const variable1349 = 1349\n1352|  const variable1350 = 1350\n1353|  const variable1351 = 1351\n1354|  const variable1352 = 1352\n1355|  const variable1353 = 1353\n1356|  const variable1354 = 1354\n1357|  const variable1355 = 1355\n1358|  const variable1356 = 1356\n1359|  const variable1357 = 1357\n1360|  const variable1358 = 1358\n1361|  const variable1359 = 1359\n1362|  const variable1360 = 1360\n1363|  const variable1361 = 1361\n1364|  const variable1362 = 1362\n1365|  const variable1363 = 1363\n1366|  const variable1364 = 1364\n1367|  const variable1365 = 1365\n1368|  const variable1366 = 1366\n1369|  const variable1367 = 1367\n1370|  const variable1368 = 1368\n1371|  const variable1369 = 1369\n1372|  const variable1370 = 1370\n1373|  const variable1371 = 1371\n1374|  const variable1372 = 1372\n1375|  const variable1373 = 1373\n1376|  const variable1374 = 1374\n1377|  const variable1375 = 1375\n1378|  const variable1376 = 1376\n1379|  const variable1377 = 1377\n1380|  const variable1378 = 1378\n1381|  const variable1379 = 1379\n1382|  const variable1380 = 1380\n1383|  const variable1381 = 1381\n1384|  const variable1382 = 1382\n1385|  const variable1383 = 1383\n1386|  const variable1384 = 1384\n1387|  const variable1385 = 1385\n1388|  const variable1386 = 1386\n1389|  const variable1387 = 1387\n1390|  const variable1388 = 1388\n1391|  const variable1389 = 1389\n1392|  const variable1390 = 1390\n1393|  const variable1391 = 1391\n1394|  const variable1392 = 1392\n1395|  const variable1393 = 1393\n1396|  const variable1394 = 1394\n1397|  const variable1395 = 1395\n1398|  const variable1396 = 1396\n1399|  const variable1397 = 1397\n1400|  const variable1398 = 1398\n1401|  const variable1399 = 1399\n1402|  // TODO: section 14\n1403|  const variable1401 = 1401\n1404|  const variable1402 = 1402\n1405|  const variable1403 = 1403\n1406|  const variable1404 = 1404\n1407|  const variable1405 = 1405\n1408|  const variable1406 = 1406\n1409|  const variable1407 = 1407\n1410|  const variable1408 = 1408\n1411|  const variable1409 = 1409\n1412|  const variable1410 = 1410\n1413|  const variable1411 = 1411\n1414|  const variable1412 = 1412\n1415|  const variable1413 = 1413\n1416|  const variable1414 = 1414\n1417|  const variable1415 = 1415\n1418|  const variable1416 = 1416\n1419|  const variable1417 = 1417\n1420|  const variable1418 = 1418\n1421|  const variable1419 = 1419\n1422|  const variable1420 = 1420\n1423|  const variable1421 = 1421\n1424|  const variable1422 = 1422\n1425|  const variable1423 = 1423\n1426|  const variable1424 = 1424\n1427|  const variable1425 = 1425\n1428|  const variable1426 = 1426\n1429|  const variable1427 = 1427\n1430|  const variable1428 = 1428\n1431|  const variable1429 = 1429\n1432|  const variable1430 = 1430\n1433|  const variable1431 = 1431\n1434|  const variable1432 = 1432\n1435|  const variable1433 = 1433\n1436|  const variable1434 = 1434\n1437|  const variable1435 = 1435\n1438|  const variable1436 = 1436\n1439|  const variable1437 = 1437\n1440|  const variable1438 = 1438\n1441|  const variable1439 = 1439\n1442|  const variable1440 = 1440\n1443|  const variable1441 = 1441\n1444|  const variable1442 = 1442\n1445|  const variable1443 = 1443\n1446|  const variable1444 = 1444\n1447|  const variable1445 = 1445\n1448|  const variable1446 = 1446\n1449|  const variable1447 = 1447\n1450|  const variable1448 = 1448\n1451|  const variable1449 = 1449\n1452|  const variable1450 = 1450\n1453|  const variable1451 = 1451\n1454|  const variable1452 = 1452\n1455|  const variable1453 = 1453\n1456|  const variable1454 = 1454\n1457|  const variable1455 = 1455\n1458|  const variable1456 = 1456\n1459|  const variable1457 = 1457\n1460|  const variable1458 = 1458\n1461|  const variable1459 = 1459\n1462|  const variable1460 = 1460\n1463|  const variable1461 = 1461\n1464|  const variable1462 = 1462\n1465|  const variable1463 = 1463\n1466|  const variable1464 = 1464\n1467|  const variable1465 = 1465\n1468|  const variable1466 = 1466\n1469|  const variable1467 = 1467\n1470|  const variable1468 = 1468\n1471|  const variable1469 = 1469\n1472|  const variable1470 = 1470\n1473|  const variable1471 = 1471\n1474|  const variable1472 = 1472\n1475|  const variable1473 = 1473\n1476|  const variable1474 = 1474\n1477|  const variable1475 = 1475\n1478|  const variable1476 = 1476\n1479|  const variable1477 = 1477\n1480|  const variable1478 = 1478\n1481|  const variable1479 = 1479\n1482|  const variable1480 = 1480\n1483|  const variable1481 = 1481\n1484|  const variable1482 = 1482\n1485|  const variable1483 = 1483\n1486|  const variable1484 = 1484\n1487|  const variable1485 = 1485\n1488|  const variable1486 = 1486\n1489|  const variable1487 = 1487\n1490|  const variable1488 = 1488\n1491|  const variable1489 = 1489\n1492|  const variable1490 = 1490\n1493|  const variable1491 = 1491\n1494|  const variable1492 = 1492\n1495|  const variable1493 = 1493\n1496|  const variable1494 = 1494\n1497|  const variable1495 = 1495\n1498|  const variable1496 = 1496\n1499|  const variable1497 = 1497\n1500|  const variable1498 = 1498\n1501|  const variable1499 = 1499\n1502|  // TODO: section 15\n1503|  const variable1501 = 1501\n1504|  const variable1502 = 1502\n1505|  const variable1503 = 1503\n1506|  const variable1504 = 1504\n1507|  const variable1505 = 1505\n1508|  const variable1506 = 1506\n1509|  const variable1507 = 1507\n1510|  const variable1508 = 1508\n1511|  const variable1509 = 1509\n1512|  const variable1510 = 1510\n1513|  const variable1511 = 1511\n1514|  const variable1512 = 1512\n1515|  const variable1513 = 1513\n1516|  const variable1514 = 1514\n1517|  const variable1515 = 1515\n1518|  const variable1516 = 1516\n1519|  const variable1517 = 1517\n1520|  const variable1518 = 1518\n1521|  const variable1519 = 1519\n1522|  const variable1520 = 1520\n1523|  const variable1521 = 1521\n1524|  const variable1522 = 1522\n1525|  const variable1523 = 1523\n1526|  const variable1524 = 1524\n1527|  const variable1525 = 1525\n1528|  const variable1526 = 1526\n1529|  const variable1527 = 1527\n1530|  const variable1528 = 1528\n1531|  const variable1529 = 1529\n1532|  const variable1530 = 1530\n1533|  const variable1531 = 1531\n1534|  const variable1532 = 1532\n1535|  const variable1533 = 1533\n1536|  const variable1534 = 1534\n1537|  const variable1535 = 1535\n1538|  const variable1536 = 1536\n1539|  const variable1537 = 1537\n1540|  const variable1538 = 1538\n1541|  const variable1539 = 1539\n1542|  const variable1540 = 1540\n1543|  const variable1541 = 1541\n1544|  const variable1542 = 1542\n1545|  const variable1543 = 1543\n1546|  const variable1544 = 1544\n1547|  const variable1545 = 1545\n1548|  const variable1546 = 1546\n1549|  const variable1547 = 1547\n1550|  const variable1548 = 1548\n1551|  const variable1549 = 1549\n1552|  const variable1550 = 1550\n1553|  const variable1551 = 1551\n1554|  const variable1552 = 1552\n1555|  const variable1553 = 1553\n1556|  const variable1554 = 1554\n1557|  const variable1555 = 1555\n1558|  const variable1556 = 1556\n1559|  const variable1557 = 1557\n1560|  const variable1558 = 1558\n1561|  const variable1559 = 1559\n1562|  const variable1560 = 1560\n1563|  const variable1561 = 1561\n1564|  const variable1562 = 1562\n1565|  const variable1563 = 1563\n1566|  const variable1564 = 1564\n1567|  const variable1565 = 1565\n1568|  const variable1566 = 1566\n1569|  const variable1567 = 1567\n1570|  const variable1568 = 1568\n1571|  const variable1569 = 1569\n1572|  const variable1570 = 1570\n1573|  const variable1571 = 1571\n1574|  const variable1572 = 1572\n1575|  const variable1573 = 1573\n1576|  const variable1574 = 1574\n1577|  const variable1575 = 1575\n1578|  const variable1576 = 1576\n1579|  const variable1577 = 1577\n1580|  const variable1578 = 1578\n1581|  const variable1579 = 1579\n1582|  const variable1580 = 1580\n1583|  const variable1581 = 1581\n1584|  const variable1582 = 1582\n1585|  const variable1583 = 1583\n1586|  const variable1584 = 1584\n1587|  const variable1585 = 1585\n1588|  const variable1586 = 1586\n1589|  const variable1587 = 1587\n1590|  const variable1588 = 1588\n1591|  const variable1589 = 1589\n1592|  const variable1590 = 1590\n1593|  const variable1591 = 1591\n1594|  const variable1592 = 1592\n1595|  const variable1593 = 1593\n1596|  const variable1594 = 1594\n1597|  const variable1595 = 1595\n1598|  const variable1596 = 1596\n1599|  const variable1597 = 1597\n1600|  const variable1598 = 1598\n1601|  const variable1599 = 1599\n1602|  // TODO: section 16\n1603|  const variable1601 = 1601\n1604|  const variable1602 = 1602\n1605|  const variable1603 = 1603\n1606|  const variable1604 = 1604\n1607|  const variable1605 = 1605\n1608|  const variable1606 = 1606\n1609|  const variable1607 = 1607\n1610|  const variable1608 = 1608\n1611|  const variable1609 = 1609\n1612|  const variable1610 = 1610\n1613|  const variable1611 = 1611\n1614|  const variable1612 = 1612\n1615|  const variable1613 = 1613\n1616|  const variable1614 = 1614\n1617|  const variable1615 = 1615\n1618|  const variable1616 = 1616\n1619|  const variable1617 = 1617\n1620|  const variable1618 = 1618\n1621|  const variable1619 = 1619\n1622|  const variable1620 = 1620\n1623|  const variable1621 = 1621\n1624|  const variable1622 = 1622\n1625|  const variable1623 = 1623\n1626|  const variable1624 = 1624\n1627|  const variable1625 = 1625\n1628|  const variable1626 = 1626\n1629|  const variable1627 = 1627\n1630|  const variable1628 = 1628\n1631|  const variable1629 = 1629\n1632|  const variable1630 = 1630\n1633|  const variable1631 = 1631\n1634|  const variable1632 = 1632\n1635|  const variable1633 = 1633\n1636|  const variable1634 = 1634\n1637|  const variable1635 = 1635\n1638|  const variable1636 = 1636\n1639|  const variable1637 = 1637\n1640|  const variable1638 = 1638\n1641|  const variable1639 = 1639\n1642|  const variable1640 = 1640\n1643|  const variable1641 = 1641\n1644|  const variable1642 = 1642\n1645|  const variable1643 = 1643\n1646|  const variable1644 = 1644\n1647|  const variable1645 = 1645\n1648|  const variable1646 = 1646\n1649|  const variable1647 = 1647\n1650|  const variable1648 = 1648\n</FILE>\n\nGenerate patches for each file that needs modification:","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":[]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
<FILE path="src/giant.ts">
◼=1102|  // DONE: section 11
◼=1202|  // DONE: section 12
◼=1302|  // DONE: section 13
◼=1402|  // DONE: section 14
◼=1502|  // DONE: section 15
◼=1602|  // DONE: section 16
</FILE>


Input: {"body":{"messages":[{"content":"You are grouping elements into cohesive groups.\n\n**Instructions:** Group by topic\n\n\n**Important:**\n- Each element gets exactly ONE group label\n- Use EXACT SAME label for similar items (case-sensitive)\n- Create new descriptive labels when needed\n\n**Output Format:**\nOne line per element:\n■0:Group Label■\n■1:Group Label■\n■END■","role":"system"},{"content":"**Elements (■0 to ■4):**\n■0: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n■1: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB■\n■2: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n■3: CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC■\n■4: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB■\n\n**Task:** For each element, output one line with its group label.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.group","promptSource":"zai:zai.group:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:Group A■
■1:Group B■
■2:Group A■
■3:Group C■
■4:Group B■


Input: {"body":{"messages":[{"content":"You are grouping elements into cohesive groups.\n\n**Instructions:** Group by topic\n\n\n**Important:**\n- Each element gets exactly ONE group label\n- Use EXACT SAME label for similar items (case-sensitive)\n- Create new descriptive labels when needed\n\n**Output Format:**\nOne line per element:\n■0:Group Label■\n■1:Group Label■\n■END■","role":"system"},{"content":"**Existing Groups (prefer reusing these):**\n- Group A\n- Group B\n- Group C\n\n**Elements (■0 to ■4):**\n■0: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n■1: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB■\n■2: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n■3: CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC■\n■4: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB■\n\n**Task:** For each element, output one line with its group label.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.group","promptSource":"zai:zai.group:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:Group A■
■1:Group B■
■2:Group A■
■3:Group C■
■4:Group B■


Input: {"body":{"messages":[{"content":"You are grouping elements into cohesive groups.\n\n**Instructions:** Group similar elements together.\n\n**Important:**\n- Each element gets exactly ONE group label\n- Use EXACT SAME label for similar items (case-sensitive)\n- Create new descriptive labels when needed\n\n**Output Format:**\nOne line per element:\n■0:Group Label■\n■1:Group Label■\n■END■","role":"system"},{"content":"**Elements (■0 to ■2):**\n■0: Short text■\n■1: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n■2: Another short■\n\n**Task:** For each element, output one line with its group label.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.group","promptSource":"zai:zai.group:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:Short■
■1:Long■
■2:Short■


Input: {"body":{"messages":[{"content":"You are grouping elements into cohesive groups.\n\n**Instructions:** Group similar elements together.\n\n**Important:**\n- Each element gets exactly ONE group label\n- Use EXACT SAME label for similar items (case-sensitive)\n- Create new descriptive labels when needed\n\n**Output Format:**\nOne line per element:\n■0:Group Label■\n■1:Group Label■\n■END■","role":"system"},{"content":"**Existing Groups (prefer reusing these):**\n- Short\n- Long\n\n**Elements (■0 to ■2):**\n■0: Short text■\n■1: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n■2: Another short■\n\n**Task:** For each element, output one line with its group label.\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.group","promptSource":"zai:zai.group:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:Short■
■1:Long■
■2:Short■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**priority**: low;medium;high\n\nInstructions: \"from lowest to highest priority\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■2)\n- Use exact criterion names: priority\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■2):\n■0: {\"id\":\"doc-1\",\"priority\":\"low\",\"content\":\"This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a low priority document. This is a■\n■1: {\"id\":\"doc-2\",\"priority\":\"high\",\"content\":\"This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a high priority document. This is a■\n■2: {\"id\":\"doc-3\",\"priority\":\"medium\",\"content\":\"This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is a medium priority document. This is■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:priority=low■
■1:priority=high■
■2:priority=medium■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**word_count**: very_short;short;medium;long;very_long\n\nInstructions: \"from shortest to longest based on word count\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■3)\n- Use exact criterion names: word_count\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■3):\n■0: {\"title\":\"Short Article\",\"content\":\"This is a short article with minimal content.\",\"wordCount\":8}■\n■1: {\"title\":\"Very Long Article\",\"content\":\"This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article. This is a very long article.■\n■2: {\"title\":\"Medium Article\",\"content\":\"This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-sized article. This is a medium-s■\n■3: {\"title\":\"Tiny Article\",\"content\":\"Tiny.\",\"wordCount\":1}■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:word_count=short■
■1:word_count=very_long■
■2:word_count=long■
■3:word_count=very_short■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**size**: tiny;small;medium;large;huge\n\nInstructions: \"from smallest to largest size\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■4)\n- Use exact criterion names: size\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■4):\n■0: {\"id\":1,\"description\":\"Small\",\"size\":\"small\"}■\n■1: {\"id\":2,\"description\":\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX■\n■2: {\"id\":3,\"description\":\"Medium length description here\",\"size\":\"medium\"}■\n■3: {\"id\":4,\"description\":\"YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY■\n■4: {\"id\":5,\"description\":\"Tiny\",\"size\":\"tiny\"}■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:size=small■
■1:size=large■
■2:size=medium■
■3:size=huge■
■4:size=tiny■


Input: {"body":{"messages":[{"content":"You are ranking items for sorting using ordered label arrays.\n\n**complexity**: trivial;simple;moderate;complex;extremely_complex\n\nInstructions: \"from least complex to most complex\"\n\nSCORING RULES:\n- For each item and each criterion, assign ONE label from the ordered list\n- Labels are ordered: first label = appears FIRST in sorted result, last label = appears LAST\n- Choose the label that best describes each item\n\nOutput format:\n■0:criterion1=label;criterion2=label■\n■1:criterion1=label;criterion2=label■\n■END■\n\nIMPORTANT:\n- Rank every item (■0 to ■2)\n- Use exact criterion names: complexity\n- Use exact labels from the lists above (lowercase, underscores)\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rank (■0 to ■2):\n■0: {\"name\":\"Simple Function\",\"code\":\"function add(a, b) { return a + b; }\",\"complexity\":1}■\n■1: {\"name\":\"Complex Algorithm\",\"code\":\"\\n            function complexSort(arr) {\\n              // This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n// This is very complex code\\n//■\n■2: {\"name\":\"Moderate Function\",\"code\":\"\\n            function processData(data) {\\n              // Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some processing logic\\n// Some pro■\n\nRank each item using the labeled scales.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.sort","promptSource":"zai:zai.sort:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■0:complexity=trivial■
■1:complexity=extremely_complex■
■2:complexity=moderate■


Input: {"body":{"messages":[{"content":"You are rating items based on evaluation criteria.\n\nEvaluation Criteria:\n**presence**:\n  - very_bad (1): No description provided at all.\n  - bad (2): Description is missing crucial parts.\n  - average (3): Basic description exists but incomplete.\n  - good (4): Description covers most essential aspects.\n  - very_good (5): Comprehensive description fully present.\n\n**detail**:\n  - very_bad (1): Only a single word, no detail.\n  - bad (2): Very sparse details, lacks depth.\n  - average (3): Moderate detail, some important points.\n  - good (4): Detailed with several informative points.\n  - very_good (5): Extremely detailed, thorough coverage.\n\n**clarity**:\n  - very_bad (1): Unclear, confusing, or nonsensical.\n  - bad (2): Hard to understand, many ambiguities.\n  - average (3): Generally understandable with minor fuzziness.\n  - good (4): Clear and easy to follow.\n  - very_good (5): Crystal clear, exceptionally well‑articulated.\n\n**relevance**:\n  - very_bad (1): Irrelevant content, unrelated to item.\n  - bad (2): Mostly irrelevant, few pertinent details.\n  - average (3): Some relevance, but includes off‑topic parts.\n  - good (4): Mostly relevant, minor extraneous info.\n  - very_good (5): Fully relevant, directly describes the item.\n\n**conciseness**:\n  - very_bad (1): Overly verbose, excessive length.\n  - bad (2): Wordy, contains many unnecessary details.\n  - average (3): Balanced length with some filler.\n  - good (4): Concise, mostly to the point.\n  - very_good (5): Very concise, no wasted words.\n\nFor each item, rate it on EACH criterion using one of these labels:\nvery_bad, bad, average, good, very_good\n\nOutput format:\n■0:criterion1=label;criterion2=label;criterion3=label■\n■1:criterion1=label;criterion2=label;criterion3=label■\n■END■\n\nIMPORTANT:\n- Rate every item (■0 to ■0)\n- Use exact criterion names: presence, detail, clarity, relevance, conciseness\n- Use exact label names: very_bad, bad, average, good, very_good\n- Use semicolons (;) between criteria\n- Use equals (=) between criterion and label","role":"system"},{"content":"Items to rate (■0 to ■0):\n■0: {\"description\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA■\n\nRate each item on all criteria.\nOutput format: ■index:criterion1=label;criterion2=label■\n■END■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.rate","promptSource":"zai:zai.rate:default"},"model":"fast","signal":{},"stopSequences":["■END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output: ■0:presence=bad;detail=very_bad;clarity=very_bad;relevance=very_bad;conciseness=very_bad■


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": []
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": []
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN T\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■{
  "features": [
    "TOKEN"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN T\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■{
  "features": [
    "TOKEN"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": []
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN \nFeature 4: Integrations\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": [
    "Integrations"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN T\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■{
  "features": [
    "TOKEN"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nFeature 1: Tables\n\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN T\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": [
    "Tables"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN \nFeature 3: Analytics\n\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": [
    "Analytics"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nOKEN TOKEN TOKEN TOKEN \nFeature 2: HITL (Human in the Loop)\n\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": [
    "HITL (Human in the Loop)"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nTOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN TOKEN\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": []
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\n</part-8>\n<part-9>\n{\n  \"features\": [\n    \"Analytics\"\n  ]\n}\n</part-9>\n<part-10>\n{\n  \"features\": []\n}\n</part-10>\n<part-11>\n{\n  \"features\": []\n}\n</part-11>\n<part-12>\n{\n  \"features\": []\n}\n</part-12>\n<part-13>\n{\n  \"features\": [\n    \"Integrations\"\n  ]\n}\n</part-13>\n\nMerge it back into a final result.\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": [
    "Analytics",
    "Integrations"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features?: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■\n• You may ignore any fields that are not present in the input. All keys are optional.","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features?: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nThe result has been split into 13 parts. Recursively merge the result into the final result.\nWhen merging arrays, take unique values.\nWhen merging conflictual (but defined) information, take the most reasonable and frequent value.\nNon-defined values are OK and normal. Don't delete fields because of null values. Focus on defined values.\n\nHere's the data:\n<part-1>\n{\n  \"features\": [\n    \"Tables\"\n  ]\n}\n</part-1>\n<part-2>\n{\n  \"features\": [\n    \"TOKEN\"\n  ]\n}\n</part-2>\n<part-3>\n{\n  \"features\": [\n    \"TOKEN\"\n  ]\n}\n</part-3>\n<part-4>\n{\n  \"features\": [\n    \"TOKEN\"\n  ]\n}\n</part-4>\n<part-5>\n{\n  \"features\": [\n    \"HITL (Human in the Loop)\"\n  ]\n}\n</part-5>\n<part-6>\n{\n  \"features\": []\n}\n</part-6>\n<part-7>\n{\n  \"features\": []\n}\n</part-7>\n<part-8>\n{\n  \"features\": []\n}\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■json_start■
{
  "features": [
    "Tables",
    "TOKEN",
    "HITL (Human in the Loop)"
  ]
}


Input: {"body":{"messages":[{"content":"Extract the following information from the input:\n{ features: string[] }\n====\n\n• Extract all features from the text\n• You may have exactly one element in the input.\n• The element must be a JSON object with exactly the format: ■json_start■{ \"features\": ... }■json_end■","role":"system"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ name: string, age: number }\n<|end_schema|>\n\n<|start_instructions|>\nExtract the person\n<|end_instructions|>\n\n<|start_input|>\nThe story goes as follow.\nOnce upon a time, there was a person named Alice who was 30 years old.\nThe end.\n<|end_input|>","role":"user","type":"text"},{"content":"■json_start■\n{\n  \"name\": \"Alice\",\n  \"age\": 30\n}\n■json_end■■NO_MORE_ELEMENT■","role":"assistant","type":"text"},{"content":"Here's an example to help you understand the format:\n\n<|start_schema|>\n{ features: string[] }\n<|end_schema|>\n\n<|start_instructions|>\nExtract all features from the text\n<|end_instructions|>\n\n<|start_input|>\nThe result has been split into 2 parts. Recursively merge the result into the final result.\nWhen merging arrays, take unique values.\nWhen merging conflictual (but defined) information, take the most reasonable and frequent value.\nNon-defined values are OK and normal. Don't delete fields because of null values. Focus on defined values.\n\nHere's the data:\n<part-1>\n{\n  \"features\": [\n    \"Tables\",\n    \"TOKEN\",\n    \"HITL (Human in the Loop)\"\n  ]\n}\n</part-1>\n<part-2>\n{\n  \"features\": [\n    \"Analytics\",\n    \"Integrations\"\n  ]\n}\n</part-2>\n\nMerge it back into a final result.\n<|end_input|>","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.extract","promptSource":"zai:zai.extract:default"},"model":"fast","signal":{},"stopSequences":["■json_end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output: ■json_start■{ "features": [ "Tables", "TOKEN", "HITL (Human in the Loop)", "Analytics", "Integrations" ] }