Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations■001-003. Make sure each part is cited correctly■013. More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question, e.g., gibberish, malformed or nonsensical)\n■invalid_question\n[Explain why it's invalid, e.g., \"The question is incomplete\" or \"The question contains nonsensical terms\", or \"Received gibberish\"]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | More filler document 334.\n■002 | More filler document 335.\n■003 | More filler document 336.\n■004 | More filler document 337.\n■005 | More filler document 338.\n■006 | More filler document 339.\n■007 | More filler document 340.\n■008 | More filler document 341.\n■009 | More filler document 342.\n■010 | More filler document 343.\n■011 | More filler document 344.\n■012 | More filler document 345.\n■013 | More filler document 346.\n■014 | More filler document 347.\n■015 | More filler document 348.\n■016 | More filler document 349.\n■017 | More filler document 350.\n■018 | More filler document 351.\n■019 | More filler document 352.\n■020 | More filler document 353.\n■021 | More filler document 354.\n■022 | More filler document 355.\n■023 | More filler document 356.\n■024 | More filler document 357.\n■025 | More filler document 358.\n■026 | More filler document 359.\n■027 | More filler document 360.\n■028 | More filler document 361.\n■029 | More filler document 362.\n■030 | More filler document 363.\n■031 | More filler document 364.\n■032 | More filler document 365.\n■033 | More filler document 366.\n■034 | More filler document 367.\n■035 | More filler document 368.\n■036 | More filler document 369.\n■037 | More filler document 370.\n■038 | More filler document 371.\n■039 | More filler document 372.\n■040 | More filler document 373.\n■041 | More filler document 374.\n■042 | More filler document 375.\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What are the important facts?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents contain only generic filler text without any substantive information about facts or topics. Therefore, the specific "important facts" cannot be identified from the available content.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations■001-003. Make sure each part is cited correctly■013. More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question, e.g., gibberish, malformed or nonsensical)\n■invalid_question\n[Explain why it's invalid, e.g., \"The question is incomplete\" or \"The question contains nonsensical terms\", or \"Received gibberish\"]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | {\n■002 |   \"id\": 46,\n■003 |   \"type\": \"entry\",\n■004 |   \"content\": \"Entry 46 contains generic information about topic 46.\",\n■005 |   \"metadata\": {\n■006 |     \"created\": \"2025-03-12\",\n■007 |     \"tags\": [\n■008 |       \"general\"\n■009 |     ]\n■010 |   }\n■011 | }\n■012 | {\n■013 |   \"id\": 47,\n■014 |   \"type\": \"entry\",\n■015 |   \"content\": \"Entry 47 contains generic information about topic 47.\",\n■016 |   \"metadata\": {\n■017 |     \"created\": \"2025-03-12\",\n■018 |     \"tags\": [\n■019 |       \"general\"\n■020 |     ]\n■021 |   }\n■022 | }\n■023 | {\n■024 |   \"id\": 48,\n■025 |   \"type\": \"entry\",\n■026 |   \"content\": \"Entry 48 contains generic information about topic 48.\",\n■027 |   \"metadata\": {\n■028 |     \"created\": \"2025-03-12\",\n■029 |     \"tags\": [\n■030 |       \"general\"\n■031 |     ]\n■032 |   }\n■033 | }\n■034 | {\n■035 |   \"id\": 49,\n■036 |   \"type\": \"entry\",\n■037 |   \"content\": \"Entry 49 contains generic information about topic 49.\",\n■038 |   \"metadata\": {\n■039 |     \"created\": \"2025-03-12\",\n■040 |     \"tags\": [\n■041 |       \"general\"\n■042 |     ]\n■043 |   }\n■044 | }\n■045 | {\n■046 |   \"id\": 50,\n■047 |   \"type\": \"important\",\n■048 |   \"content\": \"Kubernetes automates deployment, scaling, and management of containerized applications.\",\n■049 |   \"metadata\": {\n■050 |     \"created\": \"2025-03-12\",\n■051 |     \"tags\": [\n■052 |       \"kubernetes\",\n■053 |       \"containers\"\n■054 |     ]\n■055 |   }\n■056 | }\n■057 | {\n■058 |   \"id\": 51,\n■059 |   \"type\": \"entry\",\n■060 |   \"content\": \"Entry 51 contains generic information about topic 51.\",\n■061 |   \"metadata\": {\n■062 |     \"created\": \"2025-03-12\",\n■063 |     \"tags\": [\n■064 |       \"general\"\n■065 |     ]\n■066 |   }\n■067 | }\n■068 | {\n■069 |   \"id\": 52,\n■070 |   \"type\": \"entry\",\n■071 |   \"content\": \"Entry 52 contains generic information about topic 52.\",\n■072 |   \"metadata\": {\n■073 |     \"created\": \"2025-03-12\",\n■074 |     \"tags\": [\n■075 |       \"general\"\n■076 |     ]\n■077 |   }\n■078 | }\n■079 | {\n■080 |   \"id\": 53,\n■081 |   \"type\": \"entry\",\n■082 |   \"content\": \"Entry 53 contains generic information about topic 53.\",\n■083 |   \"metadata\": {\n■084 |     \"created\": \"2025-03-12\",\n■085 |     \"tags\": [\n■086 |       \"general\"\n■087 |     ]\n■088 |   }\n■089 | }\n■090 | {\n■091 |   \"id\": 54,\n■092 |   \"type\": \"entry\",\n■093 |   \"content\": \"Entry 54 contains generic information about topic 54.\",\n■094 |   \"metadata\": {\n■095 |     \"created\": \"2025-03-12\",\n■096 |     \"tags\": [\n■097 |       \"general\"\n■098 |     ]\n■099 |   }\n■100 | }\n■101 | {\n■102 |   \"id\": 55,\n■103 |   \"type\": \"entry\",\n■104 |   \"content\": \"Entry 55 contains generic information about topic 55.\",\n■105 |   \"metadata\": {\n■106 |     \"created\": \"2025-03-12\",\n■107 |     \"tags\": [\n■108 |       \"general\"\n■109 |     ]\n■110 |   }\n■111 | }\n■112 | {\n■113 |   \"id\": 56,\n■114 |   \"type\": \"entry\",\n■115 |   \"content\": \"Entry 56 contains generic information about topic 56.\",\n■116 |   \"metadata\": {\n■117 |     \"created\": \"2025-03-12\",\n■118 |     \"tags\": [\n■119 |       \"general\"\n■120 |     ]\n■121 |   }\n■122 | }\n■123 | {\n■124 |   \"id\": 57,\n■125 |   \"type\": \"entry\",\n■126 |   \"content\": \"Entry 57 contains generic information about topic 57.\",\n■127 |   \"metadata\": {\n■128 |     \"created\": \"2025-03-12\",\n■129 |     \"tags\": [\n■130 |       \"general\"\n■131 |     ]\n■132 |   }\n■133 | }\n■134 | {\n■135 |   \"id\": 58,\n■136 |   \"type\": \"entry\",\n■137 |   \"content\": \"Entry 58 contains generic information about topic 58.\",\n■138 |   \"metadata\": {\n■139 |     \"created\": \"2025-03-12\",\n■140 |     \"tags\": [\n■141 |       \"general\"\n■142 |     ]\n■143 |   }\n■144 | }\n■145 | {\n■146 |   \"id\": 59,\n■147 |   \"type\": \"entry\",\n■148 |   \"content\": \"Entry 59 contains generic information about topic 59.\",\n■149 |   \"metadata\": {\n■150 |     \"created\": \"2025-03-12\",\n■151 |     \"tags\": [\n■152 |       \"general\"\n■153 |     ]\n■154 |   }\n■155 | }\n■156 | {\n■157 |   \"id\": 60,\n■158 |   \"type\": \"entry\",\n■159 |   \"content\": \"Entry 60 contains generic information about topic 60.\",\n■160 |   \"metadata\": {\n■161 |     \"created\": \"2025-03-12\",\n■162 |     \"tags\": [\n■163 |       \"general\"\n■164 |     ]\n■165 |   }\n■166 | }\n■167 | {\n■168 |   \"id\": 61,\n■169 |   \"type\": \"entry\",\n■170 |   \"content\": \"Entry 61 contains generic information about topic 61.\",\n■171 |   \"metadata\": {\n■172 |     \"created\": \"2025-03-12\",\n■173 |     \"tags\": [\n■174 |       \"general\"\n■175 |     ]\n■176 |   }\n■177 | }\n■178 | {\n■179 |   \"id\": 62,\n■180 |   \"type\": \"entry\",\n■181 |   \"content\": \"Entry 62 contains generic information about topic 62.\",\n■182 |   \"metadata\": {\n■183 |     \"created\": \"2025-03-12\",\n■184 |     \"tags\": [\n■185 |       \"general\"\n■186 |     ]\n■187 |   }\n■188 | }\n■189 | {\n■190 |   \"id\": 63,\n■191 |   \"type\": \"entry\",\n■192 |   \"content\": \"Entry 63 contains generic information about topic 63.\",\n■193 |   \"metadata\": {\n■194 |     \"created\": \"2025-03-12\",\n■195 |     \"tags\": [\n■196 |       \"general\"\n■197 |     ]\n■198 |   }\n■199 | }\n■200 | {\n■201 |   \"id\": 64,\n■202 |   \"type\": \"entry\",\n■203 |   \"content\": \"Entry 64 contains generic information about topic 64.\",\n■204 |   \"metadata\": {\n■205 |     \"created\": \"2025-03-12\",\n■206 |     \"tags\": [\n■207 |       \"general\"\n■208 |     ]\n■209 |   }\n■210 | }\n■211 | {\n■212 |   \"id\": 65,\n■213 |   \"type\": \"entry\",\n■214 |   \"content\": \"Entry 65 contains generic information about topic 65.\",\n■215 |   \"metadata\": {\n■216 |     \"created\": \"2025-03-12\",\n■217 |     \"tags\": [\n■218 |       \"general\"\n■219 |     ]\n■220 |   }\n■221 | }\n■222 | {\n■223 |   \"id\": 66,\n■224 |   \"type\": \"entry\",\n■225 |   \"content\": \"Entry 66 contains generic information about topic 66.\",\n■226 |   \"metadata\": {\n■227 |     \"created\": \"2025-03-12\",\n■228 |     \"tags\": [\n■229 |       \"general\"\n■230 |     ]\n■231 |   }\n■232 | }\n■233 | {\n■234 |   \"id\": 67,\n■235 |   \"type\": \"entry\",\n■236 |   \"content\": \"Entry 67 contains generic information about topic 67.\",\n■237 |   \"metadata\": {\n■238 |     \"created\": \"2025-03-12\",\n■239 |     \"tags\": [\n■240 |       \"general\"\n■241 |     ]\n■242 |   }\n■243 | }\n■244 | {\n■245 |   \"id\": 68,\n■246 |   \"type\": \"entry\",\n■247 |   \"content\": \"Entry 68 contains generic information about topic 68.\",\n■248 |   \"metadata\": {\n■249 |     \"created\": \"2025-03-12\",\n■250 |     \"tags\": [\n■251 |       \"general\"\n■252 |     ]\n■253 |   }\n■254 | }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is Kubernetes?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Kubernetes is a system that automates the deployment, scaling, and management of containerized applications.■045-050■048-049■054-055

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations■001-003. Make sure each part is cited correctly■013. More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question, e.g., gibberish, malformed or nonsensical)\n■invalid_question\n[Explain why it's invalid, e.g., \"The question is incomplete\" or \"The question contains nonsensical terms\", or \"Received gibberish\"]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | {\n■002 |   \"id\": 0,\n■003 |   \"type\": \"entry\",\n■004 |   \"content\": \"Entry 0 contains generic information about topic 0.\",\n■005 |   \"metadata\": {\n■006 |     \"created\": \"2025-03-12\",\n■007 |     \"tags\": [\n■008 |       \"general\"\n■009 |     ]\n■010 |   }\n■011 | }\n■012 | {\n■013 |   \"id\": 1,\n■014 |   \"type\": \"entry\",\n■015 |   \"content\": \"Entry 1 contains generic information about topic 1.\",\n■016 |   \"metadata\": {\n■017 |     \"created\": \"2025-03-12\",\n■018 |     \"tags\": [\n■019 |       \"general\"\n■020 |     ]\n■021 |   }\n■022 | }\n■023 | {\n■024 |   \"id\": 2,\n■025 |   \"type\": \"entry\",\n■026 |   \"content\": \"Entry 2 contains generic information about topic 2.\",\n■027 |   \"metadata\": {\n■028 |     \"created\": \"2025-03-12\",\n■029 |     \"tags\": [\n■030 |       \"general\"\n■031 |     ]\n■032 |   }\n■033 | }\n■034 | {\n■035 |   \"id\": 3,\n■036 |   \"type\": \"entry\",\n■037 |   \"content\": \"Entry 3 contains generic information about topic 3.\",\n■038 |   \"metadata\": {\n■039 |     \"created\": \"2025-03-12\",\n■040 |     \"tags\": [\n■041 |       \"general\"\n■042 |     ]\n■043 |   }\n■044 | }\n■045 | {\n■046 |   \"id\": 4,\n■047 |   \"type\": \"entry\",\n■048 |   \"content\": \"Entry 4 contains generic information about topic 4.\",\n■049 |   \"metadata\": {\n■050 |     \"created\": \"2025-03-12\",\n■051 |     \"tags\": [\n■052 |       \"general\"\n■053 |     ]\n■054 |   }\n■055 | }\n■056 | {\n■057 |   \"id\": 5,\n■058 |   \"type\": \"entry\",\n■059 |   \"content\": \"Entry 5 contains generic information about topic 5.\",\n■060 |   \"metadata\": {\n■061 |     \"created\": \"2025-03-12\",\n■062 |     \"tags\": [\n■063 |       \"general\"\n■064 |     ]\n■065 |   }\n■066 | }\n■067 | {\n■068 |   \"id\": 6,\n■069 |   \"type\": \"entry\",\n■070 |   \"content\": \"Entry 6 contains generic information about topic 6.\",\n■071 |   \"metadata\": {\n■072 |     \"created\": \"2025-03-12\",\n■073 |     \"tags\": [\n■074 |       \"general\"\n■075 |     ]\n■076 |   }\n■077 | }\n■078 | {\n■079 |   \"id\": 7,\n■080 |   \"type\": \"entry\",\n■081 |   \"content\": \"Entry 7 contains generic information about topic 7.\",\n■082 |   \"metadata\": {\n■083 |     \"created\": \"2025-03-12\",\n■084 |     \"tags\": [\n■085 |       \"general\"\n■086 |     ]\n■087 |   }\n■088 | }\n■089 | {\n■090 |   \"id\": 8,\n■091 |   \"type\": \"entry\",\n■092 |   \"content\": \"Entry 8 contains generic information about topic 8.\",\n■093 |   \"metadata\": {\n■094 |     \"created\": \"2025-03-12\",\n■095 |     \"tags\": [\n■096 |       \"general\"\n■097 |     ]\n■098 |   }\n■099 | }\n■100 | {\n■101 |   \"id\": 9,\n■102 |   \"type\": \"entry\",\n■103 |   \"content\": \"Entry 9 contains generic information about topic 9.\",\n■104 |   \"metadata\": {\n■105 |     \"created\": \"2025-03-12\",\n■106 |     \"tags\": [\n■107 |       \"general\"\n■108 |     ]\n■109 |   }\n■110 | }\n■111 | {\n■112 |   \"id\": 10,\n■113 |   \"type\": \"entry\",\n■114 |   \"content\": \"Entry 10 contains generic information about topic 10.\",\n■115 |   \"metadata\": {\n■116 |     \"created\": \"2025-03-12\",\n■117 |     \"tags\": [\n■118 |       \"general\"\n■119 |     ]\n■120 |   }\n■121 | }\n■122 | {\n■123 |   \"id\": 11,\n■124 |   \"type\": \"entry\",\n■125 |   \"content\": \"Entry 11 contains generic information about topic 11.\",\n■126 |   \"metadata\": {\n■127 |     \"created\": \"2025-03-12\",\n■128 |     \"tags\": [\n■129 |       \"general\"\n■130 |     ]\n■131 |   }\n■132 | }\n■133 | {\n■134 |   \"id\": 12,\n■135 |   \"type\": \"entry\",\n■136 |   \"content\": \"Entry 12 contains generic information about topic 12.\",\n■137 |   \"metadata\": {\n■138 |     \"created\": \"2025-03-12\",\n■139 |     \"tags\": [\n■140 |       \"general\"\n■141 |     ]\n■142 |   }\n■143 | }\n■144 | {\n■145 |   \"id\": 13,\n■146 |   \"type\": \"entry\",\n■147 |   \"content\": \"Entry 13 contains generic information about topic 13.\",\n■148 |   \"metadata\": {\n■149 |     \"created\": \"2025-03-12\",\n■150 |     \"tags\": [\n■151 |       \"general\"\n■152 |     ]\n■153 |   }\n■154 | }\n■155 | {\n■156 |   \"id\": 14,\n■157 |   \"type\": \"entry\",\n■158 |   \"content\": \"Entry 14 contains generic information about topic 14.\",\n■159 |   \"metadata\": {\n■160 |     \"created\": \"2025-03-12\",\n■161 |     \"tags\": [\n■162 |       \"general\"\n■163 |     ]\n■164 |   }\n■165 | }\n■166 | {\n■167 |   \"id\": 15,\n■168 |   \"type\": \"entry\",\n■169 |   \"content\": \"Entry 15 contains generic information about topic 15.\",\n■170 |   \"metadata\": {\n■171 |     \"created\": \"2025-03-12\",\n■172 |     \"tags\": [\n■173 |       \"general\"\n■174 |     ]\n■175 |   }\n■176 | }\n■177 | {\n■178 |   \"id\": 16,\n■179 |   \"type\": \"entry\",\n■180 |   \"content\": \"Entry 16 contains generic information about topic 16.\",\n■181 |   \"metadata\": {\n■182 |     \"created\": \"2025-03-12\",\n■183 |     \"tags\": [\n■184 |       \"general\"\n■185 |     ]\n■186 |   }\n■187 | }\n■188 | {\n■189 |   \"id\": 17,\n■190 |   \"type\": \"entry\",\n■191 |   \"content\": \"Entry 17 contains generic information about topic 17.\",\n■192 |   \"metadata\": {\n■193 |     \"created\": \"2025-03-12\",\n■194 |     \"tags\": [\n■195 |       \"general\"\n■196 |     ]\n■197 |   }\n■198 | }\n■199 | {\n■200 |   \"id\": 18,\n■201 |   \"type\": \"entry\",\n■202 |   \"content\": \"Entry 18 contains generic information about topic 18.\",\n■203 |   \"metadata\": {\n■204 |     \"created\": \"2025-03-12\",\n■205 |     \"tags\": [\n■206 |       \"general\"\n■207 |     ]\n■208 |   }\n■209 | }\n■210 | {\n■211 |   \"id\": 19,\n■212 |   \"type\": \"entry\",\n■213 |   \"content\": \"Entry 19 contains generic information about topic 19.\",\n■214 |   \"metadata\": {\n■215 |     \"created\": \"2025-03-12\",\n■216 |     \"tags\": [\n■217 |       \"general\"\n■218 |     ]\n■219 |   }\n■220 | }\n■221 | {\n■222 |   \"id\": 20,\n■223 |   \"type\": \"important\",\n■224 |   \"content\": \"Kubernetes is a container orchestration platform.\",\n■225 |   \"metadata\": {\n■226 |     \"created\": \"2025-03-12\",\n■227 |     \"tags\": [\n■228 |       \"kubernetes\",\n■229 |       \"devops\"\n■230 |     ]\n■231 |   }\n■232 | }\n■233 | {\n■234 |   \"id\": 21,\n■235 |   \"type\": \"entry\",\n■236 |   \"content\": \"Entry 21 contains generic information about topic 21.\",\n■237 |   \"metadata\": {\n■238 |     \"created\": \"2025-03-12\",\n■239 |     \"tags\": [\n■240 |       \"general\"\n■241 |     ]\n■242 |   }\n■243 | }\n■244 | {\n■245 |   \"id\": 22,\n■246 |   \"type\": \"entry\",\n■247 |   \"content\": \"Entry 22 contains generic information about topic 22.\",\n■248 |   \"metadata\": {\n■249 |     \"created\": \"2025-03-12\",\n■250 |     \"tags\": [\n■251 |       \"general\"\n■252 |     ]\n■253 |   }\n■254 | }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is Kubernetes?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■answer
Kubernetes is a container orchestration platform.■222-225

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations■001-003. Make sure each part is cited correctly■013. More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question, e.g., gibberish, malformed or nonsensical)\n■invalid_question\n[Explain why it's invalid, e.g., \"The question is incomplete\" or \"The question contains nonsensical terms\", or \"Received gibberish\"]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | {\n■002 |   \"id\": 23,\n■003 |   \"type\": \"entry\",\n■004 |   \"content\": \"Entry 23 contains generic information about topic 23.\",\n■005 |   \"metadata\": {\n■006 |     \"created\": \"2025-03-12\",\n■007 |     \"tags\": [\n■008 |       \"general\"\n■009 |     ]\n■010 |   }\n■011 | }\n■012 | {\n■013 |   \"id\": 24,\n■014 |   \"type\": \"entry\",\n■015 |   \"content\": \"Entry 24 contains generic information about topic 24.\",\n■016 |   \"metadata\": {\n■017 |     \"created\": \"2025-03-12\",\n■018 |     \"tags\": [\n■019 |       \"general\"\n■020 |     ]\n■021 |   }\n■022 | }\n■023 | {\n■024 |   \"id\": 25,\n■025 |   \"type\": \"entry\",\n■026 |   \"content\": \"Entry 25 contains generic information about topic 25.\",\n■027 |   \"metadata\": {\n■028 |     \"created\": \"2025-03-12\",\n■029 |     \"tags\": [\n■030 |       \"general\"\n■031 |     ]\n■032 |   }\n■033 | }\n■034 | {\n■035 |   \"id\": 26,\n■036 |   \"type\": \"entry\",\n■037 |   \"content\": \"Entry 26 contains generic information about topic 26.\",\n■038 |   \"metadata\": {\n■039 |     \"created\": \"2025-03-12\",\n■040 |     \"tags\": [\n■041 |       \"general\"\n■042 |     ]\n■043 |   }\n■044 | }\n■045 | {\n■046 |   \"id\": 27,\n■047 |   \"type\": \"entry\",\n■048 |   \"content\": \"Entry 27 contains generic information about topic 27.\",\n■049 |   \"metadata\": {\n■050 |     \"created\": \"2025-03-12\",\n■051 |     \"tags\": [\n■052 |       \"general\"\n■053 |     ]\n■054 |   }\n■055 | }\n■056 | {\n■057 |   \"id\": 28,\n■058 |   \"type\": \"entry\",\n■059 |   \"content\": \"Entry 28 contains generic information about topic 28.\",\n■060 |   \"metadata\": {\n■061 |     \"created\": \"2025-03-12\",\n■062 |     \"tags\": [\n■063 |       \"general\"\n■064 |     ]\n■065 |   }\n■066 | }\n■067 | {\n■068 |   \"id\": 29,\n■069 |   \"type\": \"entry\",\n■070 |   \"content\": \"Entry 29 contains generic information about topic 29.\",\n■071 |   \"metadata\": {\n■072 |     \"created\": \"2025-03-12\",\n■073 |     \"tags\": [\n■074 |       \"general\"\n■075 |     ]\n■076 |   }\n■077 | }\n■078 | {\n■079 |   \"id\": 30,\n■080 |   \"type\": \"entry\",\n■081 |   \"content\": \"Entry 30 contains generic information about topic 30.\",\n■082 |   \"metadata\": {\n■083 |     \"created\": \"2025-03-12\",\n■084 |     \"tags\": [\n■085 |       \"general\"\n■086 |     ]\n■087 |   }\n■088 | }\n■089 | {\n■090 |   \"id\": 31,\n■091 |   \"type\": \"entry\",\n■092 |   \"content\": \"Entry 31 contains generic information about topic 31.\",\n■093 |   \"metadata\": {\n■094 |     \"created\": \"2025-03-12\",\n■095 |     \"tags\": [\n■096 |       \"general\"\n■097 |     ]\n■098 |   }\n■099 | }\n■100 | {\n■101 |   \"id\": 32,\n■102 |   \"type\": \"entry\",\n■103 |   \"content\": \"Entry 32 contains generic information about topic 32.\",\n■104 |   \"metadata\": {\n■105 |     \"created\": \"2025-03-12\",\n■106 |     \"tags\": [\n■107 |       \"general\"\n■108 |     ]\n■109 |   }\n■110 | }\n■111 | {\n■112 |   \"id\": 33,\n■113 |   \"type\": \"entry\",\n■114 |   \"content\": \"Entry 33 contains generic information about topic 33.\",\n■115 |   \"metadata\": {\n■116 |     \"created\": \"2025-03-12\",\n■117 |     \"tags\": [\n■118 |       \"general\"\n■119 |     ]\n■120 |   }\n■121 | }\n■122 | {\n■123 |   \"id\": 34,\n■124 |   \"type\": \"entry\",\n■125 |   \"content\": \"Entry 34 contains generic information about topic 34.\",\n■126 |   \"metadata\": {\n■127 |     \"created\": \"2025-03-12\",\n■128 |     \"tags\": [\n■129 |       \"general\"\n■130 |     ]\n■131 |   }\n■132 | }\n■133 | {\n■134 |   \"id\": 35,\n■135 |   \"type\": \"entry\",\n■136 |   \"content\": \"Entry 35 contains generic information about topic 35.\",\n■137 |   \"metadata\": {\n■138 |     \"created\": \"2025-03-12\",\n■139 |     \"tags\": [\n■140 |       \"general\"\n■141 |     ]\n■142 |   }\n■143 | }\n■144 | {\n■145 |   \"id\": 36,\n■146 |   \"type\": \"entry\",\n■147 |   \"content\": \"Entry 36 contains generic information about topic 36.\",\n■148 |   \"metadata\": {\n■149 |     \"created\": \"2025-03-12\",\n■150 |     \"tags\": [\n■151 |       \"general\"\n■152 |     ]\n■153 |   }\n■154 | }\n■155 | {\n■156 |   \"id\": 37,\n■157 |   \"type\": \"entry\",\n■158 |   \"content\": \"Entry 37 contains generic information about topic 37.\",\n■159 |   \"metadata\": {\n■160 |     \"created\": \"2025-03-12\",\n■161 |     \"tags\": [\n■162 |       \"general\"\n■163 |     ]\n■164 |   }\n■165 | }\n■166 | {\n■167 |   \"id\": 38,\n■168 |   \"type\": \"entry\",\n■169 |   \"content\": \"Entry 38 contains generic information about topic 38.\",\n■170 |   \"metadata\": {\n■171 |     \"created\": \"2025-03-12\",\n■172 |     \"tags\": [\n■173 |       \"general\"\n■174 |     ]\n■175 |   }\n■176 | }\n■177 | {\n■178 |   \"id\": 39,\n■179 |   \"type\": \"entry\",\n■180 |   \"content\": \"Entry 39 contains generic information about topic 39.\",\n■181 |   \"metadata\": {\n■182 |     \"created\": \"2025-03-12\",\n■183 |     \"tags\": [\n■184 |       \"general\"\n■185 |     ]\n■186 |   }\n■187 | }\n■188 | {\n■189 |   \"id\": 40,\n■190 |   \"type\": \"entry\",\n■191 |   \"content\": \"Entry 40 contains generic information about topic 40.\",\n■192 |   \"metadata\": {\n■193 |     \"created\": \"2025-03-12\",\n■194 |     \"tags\": [\n■195 |       \"general\"\n■196 |     ]\n■197 |   }\n■198 | }\n■199 | {\n■200 |   \"id\": 41,\n■201 |   \"type\": \"entry\",\n■202 |   \"content\": \"Entry 41 contains generic information about topic 41.\",\n■203 |   \"metadata\": {\n■204 |     \"created\": \"2025-03-12\",\n■205 |     \"tags\": [\n■206 |       \"general\"\n■207 |     ]\n■208 |   }\n■209 | }\n■210 | {\n■211 |   \"id\": 42,\n■212 |   \"type\": \"entry\",\n■213 |   \"content\": \"Entry 42 contains generic information about topic 42.\",\n■214 |   \"metadata\": {\n■215 |     \"created\": \"2025-03-12\",\n■216 |     \"tags\": [\n■217 |       \"general\"\n■218 |     ]\n■219 |   }\n■220 | }\n■221 | {\n■222 |   \"id\": 43,\n■223 |   \"type\": \"entry\",\n■224 |   \"content\": \"Entry 43 contains generic information about topic 43.\",\n■225 |   \"metadata\": {\n■226 |     \"created\": \"2025-03-12\",\n■227 |     \"tags\": [\n■228 |       \"general\"\n■229 |     ]\n■230 |   }\n■231 | }\n■232 | {\n■233 |   \"id\": 44,\n■234 |   \"type\": \"entry\",\n■235 |   \"content\": \"Entry 44 contains generic information about topic 44.\",\n■236 |   \"metadata\": {\n■237 |     \"created\": \"2025-03-12\",\n■238 |     \"tags\": [\n■239 |       \"general\"\n■240 |     ]\n■241 |   }\n■242 | }\n■243 | {\n■244 |   \"id\": 45,\n■245 |   \"type\": \"entry\",\n■246 |   \"content\": \"Entry 45 contains generic information about topic 45.\",\n■247 |   \"metadata\": {\n■248 |     \"created\": \"2025-03-12\",\n■249 |     \"tags\": [\n■250 |       \"general\"\n■251 |     ]\n■252 |   }\n■253 | }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is Kubernetes?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents list generic entries with IDs and timestamps but contain no information about Kubernetes or its definition. Therefore, the specific details needed to answer the question are missing.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


Input: {"body":{"messages":[{"content":"You are an expert research assistant specialized in answering questions using only the information provided in documents.\n\n# Task\nAnswer the user's question based ONLY on the information in the provided documents. You MUST cite your sources using line numbers.\n\n# Document Format\nDocuments are provided with line numbers:\n■001 | First line of text\n■002 | Second line of text\n■003 | Third line of text\n\n# Citation Format\nYou MUST include citations immediately after statements. Use these formats:\n- Single line: ■035\n- Range: ■005-010\n- Multiple: ■035■046■094\n\n# Response Format\n\nChoose ONE of these response types:\n\n**TYPE 1 - ANSWER** (Use this when you can answer the question)\n■answer\n[Your answer with inline citations■001-003. Make sure each part is cited correctly■013. More text. ■015]\n■end■\n\n**TYPE 2 - AMBIGUOUS** (Use when the question has multiple valid interpretations)\n■ambiguous\n[Explain the ambiguity]\n■follow_up\n[Ask a clarifying question]\n■answer\n[First interpretation with citations ■001 and part 2 as well.■002]\n■answer\n[Second interpretation with citations ■005 and part 2 of the answer.■006]\n■end■\n\n**TYPE 3 - OUT OF TOPIC** (Use when question is completely unrelated to documents)\n■out_of_topic\n[Explain why it's unrelated]\n■end■\n\n**TYPE 4 - INVALID QUESTION** (Use when input is not a proper question, e.g., gibberish, malformed or nonsensical)\n■invalid_question\n[Explain why it's invalid, e.g., \"The question is incomplete\" or \"The question contains nonsensical terms\", or \"Received gibberish\"]\n■end■\n\n**TYPE 5 - MISSING KNOWLEDGE** (Use ONLY when documents lack specific details needed)\n■missing_knowledge\n[Explain what specific information is missing]\n■end■\n\n# Important Rules\n- PREFER answering when possible - only use missing_knowledge if truly no relevant info exists\n- ALWAYS cite sources with line numbers\n- Use ONLY information from the documents\n- Be precise and factual\n- Do NOT fabricate information\n- Do NOT mention \"According to the documents\" or similar phrases – just provide a high-quality answer with citations\n- Do not be too strict on the question format; assume high-level answers are acceptable unless the question clearly asks for very specific details or requests depth beyond the documents\n\n# Additional Instructions\nHere are some additional instructions to follow about how to answer the question:\nProvide a clear and concise answer based on the documents.","role":"system"},{"content":"<documents>\n■001 | {\n■002 |   \"id\": 69,\n■003 |   \"type\": \"entry\",\n■004 |   \"content\": \"Entry 69 contains generic information about topic 69.\",\n■005 |   \"metadata\": {\n■006 |     \"created\": \"2025-03-12\",\n■007 |     \"tags\": [\n■008 |       \"general\"\n■009 |     ]\n■010 |   }\n■011 | }\n■012 | {\n■013 |   \"id\": 70,\n■014 |   \"type\": \"entry\",\n■015 |   \"content\": \"Entry 70 contains generic information about topic 70.\",\n■016 |   \"metadata\": {\n■017 |     \"created\": \"2025-03-12\",\n■018 |     \"tags\": [\n■019 |       \"general\"\n■020 |     ]\n■021 |   }\n■022 | }\n■023 | {\n■024 |   \"id\": 71,\n■025 |   \"type\": \"entry\",\n■026 |   \"content\": \"Entry 71 contains generic information about topic 71.\",\n■027 |   \"metadata\": {\n■028 |     \"created\": \"2025-03-12\",\n■029 |     \"tags\": [\n■030 |       \"general\"\n■031 |     ]\n■032 |   }\n■033 | }\n■034 | {\n■035 |   \"id\": 72,\n■036 |   \"type\": \"entry\",\n■037 |   \"content\": \"Entry 72 contains generic information about topic 72.\",\n■038 |   \"metadata\": {\n■039 |     \"created\": \"2025-03-12\",\n■040 |     \"tags\": [\n■041 |       \"general\"\n■042 |     ]\n■043 |   }\n■044 | }\n■045 | {\n■046 |   \"id\": 73,\n■047 |   \"type\": \"entry\",\n■048 |   \"content\": \"Entry 73 contains generic information about topic 73.\",\n■049 |   \"metadata\": {\n■050 |     \"created\": \"2025-03-12\",\n■051 |     \"tags\": [\n■052 |       \"general\"\n■053 |     ]\n■054 |   }\n■055 | }\n■056 | {\n■057 |   \"id\": 74,\n■058 |   \"type\": \"entry\",\n■059 |   \"content\": \"Entry 74 contains generic information about topic 74.\",\n■060 |   \"metadata\": {\n■061 |     \"created\": \"2025-03-12\",\n■062 |     \"tags\": [\n■063 |       \"general\"\n■064 |     ]\n■065 |   }\n■066 | }\n■067 | {\n■068 |   \"id\": 75,\n■069 |   \"type\": \"entry\",\n■070 |   \"content\": \"Entry 75 contains generic information about topic 75.\",\n■071 |   \"metadata\": {\n■072 |     \"created\": \"2025-03-12\",\n■073 |     \"tags\": [\n■074 |       \"general\"\n■075 |     ]\n■076 |   }\n■077 | }\n■078 | {\n■079 |   \"id\": 76,\n■080 |   \"type\": \"entry\",\n■081 |   \"content\": \"Entry 76 contains generic information about topic 76.\",\n■082 |   \"metadata\": {\n■083 |     \"created\": \"2025-03-12\",\n■084 |     \"tags\": [\n■085 |       \"general\"\n■086 |     ]\n■087 |   }\n■088 | }\n■089 | {\n■090 |   \"id\": 77,\n■091 |   \"type\": \"entry\",\n■092 |   \"content\": \"Entry 77 contains generic information about topic 77.\",\n■093 |   \"metadata\": {\n■094 |     \"created\": \"2025-03-12\",\n■095 |     \"tags\": [\n■096 |       \"general\"\n■097 |     ]\n■098 |   }\n■099 | }\n■100 | {\n■101 |   \"id\": 78,\n■102 |   \"type\": \"entry\",\n■103 |   \"content\": \"Entry 78 contains generic information about topic 78.\",\n■104 |   \"metadata\": {\n■105 |     \"created\": \"2025-03-12\",\n■106 |     \"tags\": [\n■107 |       \"general\"\n■108 |     ]\n■109 |   }\n■110 | }\n■111 | {\n■112 |   \"id\": 79,\n■113 |   \"type\": \"entry\",\n■114 |   \"content\": \"Entry 79 contains generic information about topic 79.\",\n■115 |   \"metadata\": {\n■116 |     \"created\": \"2025-03-12\",\n■117 |     \"tags\": [\n■118 |       \"general\"\n■119 |     ]\n■120 |   }\n■121 | }\n</documents>\n\nPlease answer the below question using the format specified above.\nQuestion to answer: \"What is Kubernetes?\"","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.answer","promptSource":"zai:zai.answer:default"},"model":"fast","reasoningEffort":"none","signal":{},"stopSequences":["■end■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■missing_knowledge
The provided documents only contain generic entries about topics numbered 69 to 79 and do not include any information about Kubernetes. Hence, the specific definition or description of Kubernetes is not available in the given sources.

Reasoning effort "none" is not supported by the "gpt-oss-120b" model, using "low" effort instead


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 1-550 of 2002 total lines)>\n001|function giant() {\n002|  // TODO: section 0\n003|  const variable1 = 1\n004|  const variable2 = 2\n005|  const variable3 = 3\n006|  const variable4 = 4\n007|  const variable5 = 5\n008|  const variable6 = 6\n009|  const variable7 = 7\n010|  const variable8 = 8\n011|  const variable9 = 9\n012|  const variable10 = 10\n013|  const variable11 = 11\n014|  const variable12 = 12\n015|  const variable13 = 13\n016|  const variable14 = 14\n017|  const variable15 = 15\n018|  const variable16 = 16\n019|  const variable17 = 17\n020|  const variable18 = 18\n021|  const variable19 = 19\n022|  const variable20 = 20\n023|  const variable21 = 21\n024|  const variable22 = 22\n025|  const variable23 = 23\n026|  const variable24 = 24\n027|  const variable25 = 25\n028|  const variable26 = 26\n029|  const variable27 = 27\n030|  const variable28 = 28\n031|  const variable29 = 29\n032|  const variable30 = 30\n033|  const variable31 = 31\n034|  const variable32 = 32\n035|  const variable33 = 33\n036|  const variable34 = 34\n037|  const variable35 = 35\n038|  const variable36 = 36\n039|  const variable37 = 37\n040|  const variable38 = 38\n041|  const variable39 = 39\n042|  const variable40 = 40\n043|  const variable41 = 41\n044|  const variable42 = 42\n045|  const variable43 = 43\n046|  const variable44 = 44\n047|  const variable45 = 45\n048|  const variable46 = 46\n049|  const variable47 = 47\n050|  const variable48 = 48\n051|  const variable49 = 49\n052|  const variable50 = 50\n053|  const variable51 = 51\n054|  const variable52 = 52\n055|  const variable53 = 53\n056|  const variable54 = 54\n057|  const variable55 = 55\n058|  const variable56 = 56\n059|  const variable57 = 57\n060|  const variable58 = 58\n061|  const variable59 = 59\n062|  const variable60 = 60\n063|  const variable61 = 61\n064|  const variable62 = 62\n065|  const variable63 = 63\n066|  const variable64 = 64\n067|  const variable65 = 65\n068|  const variable66 = 66\n069|  const variable67 = 67\n070|  const variable68 = 68\n071|  const variable69 = 69\n072|  const variable70 = 70\n073|  const variable71 = 71\n074|  const variable72 = 72\n075|  const variable73 = 73\n076|  const variable74 = 74\n077|  const variable75 = 75\n078|  const variable76 = 76\n079|  const variable77 = 77\n080|  const variable78 = 78\n081|  const variable79 = 79\n082|  const variable80 = 80\n083|  const variable81 = 81\n084|  const variable82 = 82\n085|  const variable83 = 83\n086|  const variable84 = 84\n087|  const variable85 = 85\n088|  const variable86 = 86\n089|  const variable87 = 87\n090|  const variable88 = 88\n091|  const variable89 = 89\n092|  const variable90 = 90\n093|  const variable91 = 91\n094|  const variable92 = 92\n095|  const variable93 = 93\n096|  const variable94 = 94\n097|  const variable95 = 95\n098|  const variable96 = 96\n099|  const variable97 = 97\n100|  const variable98 = 98\n101|  const variable99 = 99\n102|  // TODO: section 1\n103|  const variable101 = 101\n104|  const variable102 = 102\n105|  const variable103 = 103\n106|  const variable104 = 104\n107|  const variable105 = 105\n108|  const variable106 = 106\n109|  const variable107 = 107\n110|  const variable108 = 108\n111|  const variable109 = 109\n112|  const variable110 = 110\n113|  const variable111 = 111\n114|  const variable112 = 112\n115|  const variable113 = 113\n116|  const variable114 = 114\n117|  const variable115 = 115\n118|  const variable116 = 116\n119|  const variable117 = 117\n120|  const variable118 = 118\n121|  const variable119 = 119\n122|  const variable120 = 120\n123|  const variable121 = 121\n124|  const variable122 = 122\n125|  const variable123 = 123\n126|  const variable124 = 124\n127|  const variable125 = 125\n128|  const variable126 = 126\n129|  const variable127 = 127\n130|  const variable128 = 128\n131|  const variable129 = 129\n132|  const variable130 = 130\n133|  const variable131 = 131\n134|  const variable132 = 132\n135|  const variable133 = 133\n136|  const variable134 = 134\n137|  const variable135 = 135\n138|  const variable136 = 136\n139|  const variable137 = 137\n140|  const variable138 = 138\n141|  const variable139 = 139\n142|  const variable140 = 140\n143|  const variable141 = 141\n144|  const variable142 = 142\n145|  const variable143 = 143\n146|  const variable144 = 144\n147|  const variable145 = 145\n148|  const variable146 = 146\n149|  const variable147 = 147\n150|  const variable148 = 148\n151|  const variable149 = 149\n152|  const variable150 = 150\n153|  const variable151 = 151\n154|  const variable152 = 152\n155|  const variable153 = 153\n156|  const variable154 = 154\n157|  const variable155 = 155\n158|  const variable156 = 156\n159|  const variable157 = 157\n160|  const variable158 = 158\n161|  const variable159 = 159\n162|  const variable160 = 160\n163|  const variable161 = 161\n164|  const variable162 = 162\n165|  const variable163 = 163\n166|  const variable164 = 164\n167|  const variable165 = 165\n168|  const variable166 = 166\n169|  const variable167 = 167\n170|  const variable168 = 168\n171|  const variable169 = 169\n172|  const variable170 = 170\n173|  const variable171 = 171\n174|  const variable172 = 172\n175|  const variable173 = 173\n176|  const variable174 = 174\n177|  const variable175 = 175\n178|  const variable176 = 176\n179|  const variable177 = 177\n180|  const variable178 = 178\n181|  const variable179 = 179\n182|  const variable180 = 180\n183|  const variable181 = 181\n184|  const variable182 = 182\n185|  const variable183 = 183\n186|  const variable184 = 184\n187|  const variable185 = 185\n188|  const variable186 = 186\n189|  const variable187 = 187\n190|  const variable188 = 188\n191|  const variable189 = 189\n192|  const variable190 = 190\n193|  const variable191 = 191\n194|  const variable192 = 192\n195|  const variable193 = 193\n196|  const variable194 = 194\n197|  const variable195 = 195\n198|  const variable196 = 196\n199|  const variable197 = 197\n200|  const variable198 = 198\n201|  const variable199 = 199\n202|  // TODO: section 2\n203|  const variable201 = 201\n204|  const variable202 = 202\n205|  const variable203 = 203\n206|  const variable204 = 204\n207|  const variable205 = 205\n208|  const variable206 = 206\n209|  const variable207 = 207\n210|  const variable208 = 208\n211|  const variable209 = 209\n212|  const variable210 = 210\n213|  const variable211 = 211\n214|  const variable212 = 212\n215|  const variable213 = 213\n216|  const variable214 = 214\n217|  const variable215 = 215\n218|  const variable216 = 216\n219|  const variable217 = 217\n220|  const variable218 = 218\n221|  const variable219 = 219\n222|  const variable220 = 220\n223|  const variable221 = 221\n224|  const variable222 = 222\n225|  const variable223 = 223\n226|  const variable224 = 224\n227|  const variable225 = 225\n228|  const variable226 = 226\n229|  const variable227 = 227\n230|  const variable228 = 228\n231|  const variable229 = 229\n232|  const variable230 = 230\n233|  const variable231 = 231\n234|  const variable232 = 232\n235|  const variable233 = 233\n236|  const variable234 = 234\n237|  const variable235 = 235\n238|  const variable236 = 236\n239|  const variable237 = 237\n240|  const variable238 = 238\n241|  const variable239 = 239\n242|  const variable240 = 240\n243|  const variable241 = 241\n244|  const variable242 = 242\n245|  const variable243 = 243\n246|  const variable244 = 244\n247|  const variable245 = 245\n248|  const variable246 = 246\n249|  const variable247 = 247\n250|  const variable248 = 248\n251|  const variable249 = 249\n252|  const variable250 = 250\n253|  const variable251 = 251\n254|  const variable252 = 252\n255|  const variable253 = 253\n256|  const variable254 = 254\n257|  const variable255 = 255\n258|  const variable256 = 256\n259|  const variable257 = 257\n260|  const variable258 = 258\n261|  const variable259 = 259\n262|  const variable260 = 260\n263|  const variable261 = 261\n264|  const variable262 = 262\n265|  const variable263 = 263\n266|  const variable264 = 264\n267|  const variable265 = 265\n268|  const variable266 = 266\n269|  const variable267 = 267\n270|  const variable268 = 268\n271|  const variable269 = 269\n272|  const variable270 = 270\n273|  const variable271 = 271\n274|  const variable272 = 272\n275|  const variable273 = 273\n276|  const variable274 = 274\n277|  const variable275 = 275\n278|  const variable276 = 276\n279|  const variable277 = 277\n280|  const variable278 = 278\n281|  const variable279 = 279\n282|  const variable280 = 280\n283|  const variable281 = 281\n284|  const variable282 = 282\n285|  const variable283 = 283\n286|  const variable284 = 284\n287|  const variable285 = 285\n288|  const variable286 = 286\n289|  const variable287 = 287\n290|  const variable288 = 288\n291|  const variable289 = 289\n292|  const variable290 = 290\n293|  const variable291 = 291\n294|  const variable292 = 292\n295|  const variable293 = 293\n296|  const variable294 = 294\n297|  const variable295 = 295\n298|  const variable296 = 296\n299|  const variable297 = 297\n300|  const variable298 = 298\n301|  const variable299 = 299\n302|  // TODO: section 3\n303|  const variable301 = 301\n304|  const variable302 = 302\n305|  const variable303 = 303\n306|  const variable304 = 304\n307|  const variable305 = 305\n308|  const variable306 = 306\n309|  const variable307 = 307\n310|  const variable308 = 308\n311|  const variable309 = 309\n312|  const variable310 = 310\n313|  const variable311 = 311\n314|  const variable312 = 312\n315|  const variable313 = 313\n316|  const variable314 = 314\n317|  const variable315 = 315\n318|  const variable316 = 316\n319|  const variable317 = 317\n320|  const variable318 = 318\n321|  const variable319 = 319\n322|  const variable320 = 320\n323|  const variable321 = 321\n324|  const variable322 = 322\n325|  const variable323 = 323\n326|  const variable324 = 324\n327|  const variable325 = 325\n328|  const variable326 = 326\n329|  const variable327 = 327\n330|  const variable328 = 328\n331|  const variable329 = 329\n332|  const variable330 = 330\n333|  const variable331 = 331\n334|  const variable332 = 332\n335|  const variable333 = 333\n336|  const variable334 = 334\n337|  const variable335 = 335\n338|  const variable336 = 336\n339|  const variable337 = 337\n340|  const variable338 = 338\n341|  const variable339 = 339\n342|  const variable340 = 340\n343|  const variable341 = 341\n344|  const variable342 = 342\n345|  const variable343 = 343\n346|  const variable344 = 344\n347|  const variable345 = 345\n348|  const variable346 = 346\n349|  const variable347 = 347\n350|  const variable348 = 348\n351|  const variable349 = 349\n352|  const variable350 = 350\n353|  const variable351 = 351\n354|  const variable352 = 352\n355|  const variable353 = 353\n356|  const variable354 = 354\n357|  const variable355 = 355\n358|  const variable356 = 356\n359|  const variable357 = 357\n360|  const variable358 = 358\n361|  const variable359 = 359\n362|  const variable360 = 360\n363|  const variable361 = 361\n364|  const variable362 = 362\n365|  const variable363 = 363\n366|  const variable364 = 364\n367|  const variable365 = 365\n368|  const variable366 = 366\n369|  const variable367 = 367\n370|  const variable368 = 368\n371|  const variable369 = 369\n372|  const variable370 = 370\n373|  const variable371 = 371\n374|  const variable372 = 372\n375|  const variable373 = 373\n376|  const variable374 = 374\n377|  const variable375 = 375\n378|  const variable376 = 376\n379|  const variable377 = 377\n380|  const variable378 = 378\n381|  const variable379 = 379\n382|  const variable380 = 380\n383|  const variable381 = 381\n384|  const variable382 = 382\n385|  const variable383 = 383\n386|  const variable384 = 384\n387|  const variable385 = 385\n388|  const variable386 = 386\n389|  const variable387 = 387\n390|  const variable388 = 388\n391|  const variable389 = 389\n392|  const variable390 = 390\n393|  const variable391 = 391\n394|  const variable392 = 392\n395|  const variable393 = 393\n396|  const variable394 = 394\n397|  const variable395 = 395\n398|  const variable396 = 396\n399|  const variable397 = 397\n400|  const variable398 = 398\n401|  const variable399 = 399\n402|  // TODO: section 4\n403|  const variable401 = 401\n404|  const variable402 = 402\n405|  const variable403 = 403\n406|  const variable404 = 404\n407|  const variable405 = 405\n408|  const variable406 = 406\n409|  const variable407 = 407\n410|  const variable408 = 408\n411|  const variable409 = 409\n412|  const variable410 = 410\n413|  const variable411 = 411\n414|  const variable412 = 412\n415|  const variable413 = 413\n416|  const variable414 = 414\n417|  const variable415 = 415\n418|  const variable416 = 416\n419|  const variable417 = 417\n420|  const variable418 = 418\n421|  const variable419 = 419\n422|  const variable420 = 420\n423|  const variable421 = 421\n424|  const variable422 = 422\n425|  const variable423 = 423\n426|  const variable424 = 424\n427|  const variable425 = 425\n428|  const variable426 = 426\n429|  const variable427 = 427\n430|  const variable428 = 428\n431|  const variable429 = 429\n432|  const variable430 = 430\n433|  const variable431 = 431\n434|  const variable432 = 432\n435|  const variable433 = 433\n436|  const variable434 = 434\n437|  const variable435 = 435\n438|  const variable436 = 436\n439|  const variable437 = 437\n440|  const variable438 = 438\n441|  const variable439 = 439\n442|  const variable440 = 440\n443|  const variable441 = 441\n444|  const variable442 = 442\n445|  const variable443 = 443\n446|  const variable444 = 444\n447|  const variable445 = 445\n448|  const variable446 = 446\n449|  const variable447 = 447\n450|  const variable448 = 448\n451|  const variable449 = 449\n452|  const variable450 = 450\n453|  const variable451 = 451\n454|  const variable452 = 452\n455|  const variable453 = 453\n456|  const variable454 = 454\n457|  const variable455 = 455\n458|  const variable456 = 456\n459|  const variable457 = 457\n460|  const variable458 = 458\n461|  const variable459 = 459\n462|  const variable460 = 460\n463|  const variable461 = 461\n464|  const variable462 = 462\n465|  const variable463 = 463\n466|  const variable464 = 464\n467|  const variable465 = 465\n468|  const variable466 = 466\n469|  const variable467 = 467\n470|  const variable468 = 468\n471|  const variable469 = 469\n472|  const variable470 = 470\n473|  const variable471 = 471\n474|  const variable472 = 472\n475|  const variable473 = 473\n476|  const variable474 = 474\n477|  const variable475 = 475\n478|  const variable476 = 476\n479|  const variable477 = 477\n480|  const variable478 = 478\n481|  const variable479 = 479\n482|  const variable480 = 480\n483|  const variable481 = 481\n484|  const variable482 = 482\n485|  const variable483 = 483\n486|  const variable484 = 484\n487|  const variable485 = 485\n488|  const variable486 = 486\n489|  const variable487 = 487\n490|  const variable488 = 488\n491|  const variable489 = 489\n492|  const variable490 = 490\n493|  const variable491 = 491\n494|  const variable492 = 492\n495|  const variable493 = 493\n496|  const variable494 = 494\n497|  const variable495 = 495\n498|  const variable496 = 496\n499|  const variable497 = 497\n500|  const variable498 = 498\n501|  const variable499 = 499\n502|  // TODO: section 5\n503|  const variable501 = 501\n504|  const variable502 = 502\n505|  const variable503 = 503\n506|  const variable504 = 504\n507|  const variable505 = 505\n508|  const variable506 = 506\n509|  const variable507 = 507\n510|  const variable508 = 508\n511|  const variable509 = 509\n512|  const variable510 = 510\n513|  const variable511 = 511\n514|  const variable512 = 512\n515|  const variable513 = 513\n516|  const variable514 = 514\n517|  const variable515 = 515\n518|  const variable516 = 516\n519|  const variable517 = 517\n520|  const variable518 = 518\n521|  const variable519 = 519\n522|  const variable520 = 520\n523|  const variable521 = 521\n524|  const variable522 = 522\n525|  const variable523 = 523\n526|  const variable524 = 524\n527|  const variable525 = 525\n528|  const variable526 = 526\n529|  const variable527 = 527\n530|  const variable528 = 528\n531|  const variable529 = 529\n532|  const variable530 = 530\n533|  const variable531 = 531\n534|  const variable532 = 532\n535|  const variable533 = 533\n536|  const variable534 = 534\n537|  const variable535 = 535\n538|  const variable536 = 536\n539|  const variable537 = 537\n540|  const variable538 = 538\n541|  const variable539 = 539\n542|  const variable540 = 540\n543|  const variable541 = 541\n544|  const variable542 = 542\n545|  const variable543 = 543\n546|  const variable544 = 544\n547|  const variable545 = 545\n548|  const variable546 = 546\n549|  const variable547 = 547\n550|  const variable548 = 548\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">
◼=002|  // DONE: section 0
◼=102|  // DONE: section 1
◼=202|  // DONE: section 2
◼=302|  // DONE: section 3
◼=402|  // DONE: section 4
◼=502|  // DONE: section 5
</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 551-1100 of 2002 total lines)>\n551|  const variable549 = 549\n552|  const variable550 = 550\n553|  const variable551 = 551\n554|  const variable552 = 552\n555|  const variable553 = 553\n556|  const variable554 = 554\n557|  const variable555 = 555\n558|  const variable556 = 556\n559|  const variable557 = 557\n560|  const variable558 = 558\n561|  const variable559 = 559\n562|  const variable560 = 560\n563|  const variable561 = 561\n564|  const variable562 = 562\n565|  const variable563 = 563\n566|  const variable564 = 564\n567|  const variable565 = 565\n568|  const variable566 = 566\n569|  const variable567 = 567\n570|  const variable568 = 568\n571|  const variable569 = 569\n572|  const variable570 = 570\n573|  const variable571 = 571\n574|  const variable572 = 572\n575|  const variable573 = 573\n576|  const variable574 = 574\n577|  const variable575 = 575\n578|  const variable576 = 576\n579|  const variable577 = 577\n580|  const variable578 = 578\n581|  const variable579 = 579\n582|  const variable580 = 580\n583|  const variable581 = 581\n584|  const variable582 = 582\n585|  const variable583 = 583\n586|  const variable584 = 584\n587|  const variable585 = 585\n588|  const variable586 = 586\n589|  const variable587 = 587\n590|  const variable588 = 588\n591|  const variable589 = 589\n592|  const variable590 = 590\n593|  const variable591 = 591\n594|  const variable592 = 592\n595|  const variable593 = 593\n596|  const variable594 = 594\n597|  const variable595 = 595\n598|  const variable596 = 596\n599|  const variable597 = 597\n600|  const variable598 = 598\n601|  const variable599 = 599\n602|  // TODO: section 6\n603|  const variable601 = 601\n604|  const variable602 = 602\n605|  const variable603 = 603\n606|  const variable604 = 604\n607|  const variable605 = 605\n608|  const variable606 = 606\n609|  const variable607 = 607\n610|  const variable608 = 608\n611|  const variable609 = 609\n612|  const variable610 = 610\n613|  const variable611 = 611\n614|  const variable612 = 612\n615|  const variable613 = 613\n616|  const variable614 = 614\n617|  const variable615 = 615\n618|  const variable616 = 616\n619|  const variable617 = 617\n620|  const variable618 = 618\n621|  const variable619 = 619\n622|  const variable620 = 620\n623|  const variable621 = 621\n624|  const variable622 = 622\n625|  const variable623 = 623\n626|  const variable624 = 624\n627|  const variable625 = 625\n628|  const variable626 = 626\n629|  const variable627 = 627\n630|  const variable628 = 628\n631|  const variable629 = 629\n632|  const variable630 = 630\n633|  const variable631 = 631\n634|  const variable632 = 632\n635|  const variable633 = 633\n636|  const variable634 = 634\n637|  const variable635 = 635\n638|  const variable636 = 636\n639|  const variable637 = 637\n640|  const variable638 = 638\n641|  const variable639 = 639\n642|  const variable640 = 640\n643|  const variable641 = 641\n644|  const variable642 = 642\n645|  const variable643 = 643\n646|  const variable644 = 644\n647|  const variable645 = 645\n648|  const variable646 = 646\n649|  const variable647 = 647\n650|  const variable648 = 648\n651|  const variable649 = 649\n652|  const variable650 = 650\n653|  const variable651 = 651\n654|  const variable652 = 652\n655|  const variable653 = 653\n656|  const variable654 = 654\n657|  const variable655 = 655\n658|  const variable656 = 656\n659|  const variable657 = 657\n660|  const variable658 = 658\n661|  const variable659 = 659\n662|  const variable660 = 660\n663|  const variable661 = 661\n664|  const variable662 = 662\n665|  const variable663 = 663\n666|  const variable664 = 664\n667|  const variable665 = 665\n668|  const variable666 = 666\n669|  const variable667 = 667\n670|  const variable668 = 668\n671|  const variable669 = 669\n672|  const variable670 = 670\n673|  const variable671 = 671\n674|  const variable672 = 672\n675|  const variable673 = 673\n676|  const variable674 = 674\n677|  const variable675 = 675\n678|  const variable676 = 676\n679|  const variable677 = 677\n680|  const variable678 = 678\n681|  const variable679 = 679\n682|  const variable680 = 680\n683|  const variable681 = 681\n684|  const variable682 = 682\n685|  const variable683 = 683\n686|  const variable684 = 684\n687|  const variable685 = 685\n688|  const variable686 = 686\n689|  const variable687 = 687\n690|  const variable688 = 688\n691|  const variable689 = 689\n692|  const variable690 = 690\n693|  const variable691 = 691\n694|  const variable692 = 692\n695|  const variable693 = 693\n696|  const variable694 = 694\n697|  const variable695 = 695\n698|  const variable696 = 696\n699|  const variable697 = 697\n700|  const variable698 = 698\n701|  const variable699 = 699\n702|  // TODO: section 7\n703|  const variable701 = 701\n704|  const variable702 = 702\n705|  const variable703 = 703\n706|  const variable704 = 704\n707|  const variable705 = 705\n708|  const variable706 = 706\n709|  const variable707 = 707\n710|  const variable708 = 708\n711|  const variable709 = 709\n712|  const variable710 = 710\n713|  const variable711 = 711\n714|  const variable712 = 712\n715|  const variable713 = 713\n716|  const variable714 = 714\n717|  const variable715 = 715\n718|  const variable716 = 716\n719|  const variable717 = 717\n720|  const variable718 = 718\n721|  const variable719 = 719\n722|  const variable720 = 720\n723|  const variable721 = 721\n724|  const variable722 = 722\n725|  const variable723 = 723\n726|  const variable724 = 724\n727|  const variable725 = 725\n728|  const variable726 = 726\n729|  const variable727 = 727\n730|  const variable728 = 728\n731|  const variable729 = 729\n732|  const variable730 = 730\n733|  const variable731 = 731\n734|  const variable732 = 732\n735|  const variable733 = 733\n736|  const variable734 = 734\n737|  const variable735 = 735\n738|  const variable736 = 736\n739|  const variable737 = 737\n740|  const variable738 = 738\n741|  const variable739 = 739\n742|  const variable740 = 740\n743|  const variable741 = 741\n744|  const variable742 = 742\n745|  const variable743 = 743\n746|  const variable744 = 744\n747|  const variable745 = 745\n748|  const variable746 = 746\n749|  const variable747 = 747\n750|  const variable748 = 748\n751|  const variable749 = 749\n752|  const variable750 = 750\n753|  const variable751 = 751\n754|  const variable752 = 752\n755|  const variable753 = 753\n756|  const variable754 = 754\n757|  const variable755 = 755\n758|  const variable756 = 756\n759|  const variable757 = 757\n760|  const variable758 = 758\n761|  const variable759 = 759\n762|  const variable760 = 760\n763|  const variable761 = 761\n764|  const variable762 = 762\n765|  const variable763 = 763\n766|  const variable764 = 764\n767|  const variable765 = 765\n768|  const variable766 = 766\n769|  const variable767 = 767\n770|  const variable768 = 768\n771|  const variable769 = 769\n772|  const variable770 = 770\n773|  const variable771 = 771\n774|  const variable772 = 772\n775|  const variable773 = 773\n776|  const variable774 = 774\n777|  const variable775 = 775\n778|  const variable776 = 776\n779|  const variable777 = 777\n780|  const variable778 = 778\n781|  const variable779 = 779\n782|  const variable780 = 780\n783|  const variable781 = 781\n784|  const variable782 = 782\n785|  const variable783 = 783\n786|  const variable784 = 784\n787|  const variable785 = 785\n788|  const variable786 = 786\n789|  const variable787 = 787\n790|  const variable788 = 788\n791|  const variable789 = 789\n792|  const variable790 = 790\n793|  const variable791 = 791\n794|  const variable792 = 792\n795|  const variable793 = 793\n796|  const variable794 = 794\n797|  const variable795 = 795\n798|  const variable796 = 796\n799|  const variable797 = 797\n800|  const variable798 = 798\n801|  const variable799 = 799\n802|  // TODO: section 8\n803|  const variable801 = 801\n804|  const variable802 = 802\n805|  const variable803 = 803\n806|  const variable804 = 804\n807|  const variable805 = 805\n808|  const variable806 = 806\n809|  const variable807 = 807\n810|  const variable808 = 808\n811|  const variable809 = 809\n812|  const variable810 = 810\n813|  const variable811 = 811\n814|  const variable812 = 812\n815|  const variable813 = 813\n816|  const variable814 = 814\n817|  const variable815 = 815\n818|  const variable816 = 816\n819|  const variable817 = 817\n820|  const variable818 = 818\n821|  const variable819 = 819\n822|  const variable820 = 820\n823|  const variable821 = 821\n824|  const variable822 = 822\n825|  const variable823 = 823\n826|  const variable824 = 824\n827|  const variable825 = 825\n828|  const variable826 = 826\n829|  const variable827 = 827\n830|  const variable828 = 828\n831|  const variable829 = 829\n832|  const variable830 = 830\n833|  const variable831 = 831\n834|  const variable832 = 832\n835|  const variable833 = 833\n836|  const variable834 = 834\n837|  const variable835 = 835\n838|  const variable836 = 836\n839|  const variable837 = 837\n840|  const variable838 = 838\n841|  const variable839 = 839\n842|  const variable840 = 840\n843|  const variable841 = 841\n844|  const variable842 = 842\n845|  const variable843 = 843\n846|  const variable844 = 844\n847|  const variable845 = 845\n848|  const variable846 = 846\n849|  const variable847 = 847\n850|  const variable848 = 848\n851|  const variable849 = 849\n852|  const variable850 = 850\n853|  const variable851 = 851\n854|  const variable852 = 852\n855|  const variable853 = 853\n856|  const variable854 = 854\n857|  const variable855 = 855\n858|  const variable856 = 856\n859|  const variable857 = 857\n860|  const variable858 = 858\n861|  const variable859 = 859\n862|  const variable860 = 860\n863|  const variable861 = 861\n864|  const variable862 = 862\n865|  const variable863 = 863\n866|  const variable864 = 864\n867|  const variable865 = 865\n868|  const variable866 = 866\n869|  const variable867 = 867\n870|  const variable868 = 868\n871|  const variable869 = 869\n872|  const variable870 = 870\n873|  const variable871 = 871\n874|  const variable872 = 872\n875|  const variable873 = 873\n876|  const variable874 = 874\n877|  const variable875 = 875\n878|  const variable876 = 876\n879|  const variable877 = 877\n880|  const variable878 = 878\n881|  const variable879 = 879\n882|  const variable880 = 880\n883|  const variable881 = 881\n884|  const variable882 = 882\n885|  const variable883 = 883\n886|  const variable884 = 884\n887|  const variable885 = 885\n888|  const variable886 = 886\n889|  const variable887 = 887\n890|  const variable888 = 888\n891|  const variable889 = 889\n892|  const variable890 = 890\n893|  const variable891 = 891\n894|  const variable892 = 892\n895|  const variable893 = 893\n896|  const variable894 = 894\n897|  const variable895 = 895\n898|  const variable896 = 896\n899|  const variable897 = 897\n900|  const variable898 = 898\n901|  const variable899 = 899\n902|  // TODO: section 9\n903|  const variable901 = 901\n904|  const variable902 = 902\n905|  const variable903 = 903\n906|  const variable904 = 904\n907|  const variable905 = 905\n908|  const variable906 = 906\n909|  const variable907 = 907\n910|  const variable908 = 908\n911|  const variable909 = 909\n912|  const variable910 = 910\n913|  const variable911 = 911\n914|  const variable912 = 912\n915|  const variable913 = 913\n916|  const variable914 = 914\n917|  const variable915 = 915\n918|  const variable916 = 916\n919|  const variable917 = 917\n920|  const variable918 = 918\n921|  const variable919 = 919\n922|  const variable920 = 920\n923|  const variable921 = 921\n924|  const variable922 = 922\n925|  const variable923 = 923\n926|  const variable924 = 924\n927|  const variable925 = 925\n928|  const variable926 = 926\n929|  const variable927 = 927\n930|  const variable928 = 928\n931|  const variable929 = 929\n932|  const variable930 = 930\n933|  const variable931 = 931\n934|  const variable932 = 932\n935|  const variable933 = 933\n936|  const variable934 = 934\n937|  const variable935 = 935\n938|  const variable936 = 936\n939|  const variable937 = 937\n940|  const variable938 = 938\n941|  const variable939 = 939\n942|  const variable940 = 940\n943|  const variable941 = 941\n944|  const variable942 = 942\n945|  const variable943 = 943\n946|  const variable944 = 944\n947|  const variable945 = 945\n948|  const variable946 = 946\n949|  const variable947 = 947\n950|  const variable948 = 948\n951|  const variable949 = 949\n952|  const variable950 = 950\n953|  const variable951 = 951\n954|  const variable952 = 952\n955|  const variable953 = 953\n956|  const variable954 = 954\n957|  const variable955 = 955\n958|  const variable956 = 956\n959|  const variable957 = 957\n960|  const variable958 = 958\n961|  const variable959 = 959\n962|  const variable960 = 960\n963|  const variable961 = 961\n964|  const variable962 = 962\n965|  const variable963 = 963\n966|  const variable964 = 964\n967|  const variable965 = 965\n968|  const variable966 = 966\n969|  const variable967 = 967\n970|  const variable968 = 968\n971|  const variable969 = 969\n972|  const variable970 = 970\n973|  const variable971 = 971\n974|  const variable972 = 972\n975|  const variable973 = 973\n976|  const variable974 = 974\n977|  const variable975 = 975\n978|  const variable976 = 976\n979|  const variable977 = 977\n980|  const variable978 = 978\n981|  const variable979 = 979\n982|  const variable980 = 980\n983|  const variable981 = 981\n984|  const variable982 = 982\n985|  const variable983 = 983\n986|  const variable984 = 984\n987|  const variable985 = 985\n988|  const variable986 = 986\n989|  const variable987 = 987\n990|  const variable988 = 988\n991|  const variable989 = 989\n992|  const variable990 = 990\n993|  const variable991 = 991\n994|  const variable992 = 992\n995|  const variable993 = 993\n996|  const variable994 = 994\n997|  const variable995 = 995\n998|  const variable996 = 996\n999|  const variable997 = 997\n1000|  const variable998 = 998\n1001|  const variable999 = 999\n1002|  // TODO: section 10\n1003|  const variable1001 = 1001\n1004|  const variable1002 = 1002\n1005|  const variable1003 = 1003\n1006|  const variable1004 = 1004\n1007|  const variable1005 = 1005\n1008|  const variable1006 = 1006\n1009|  const variable1007 = 1007\n1010|  const variable1008 = 1008\n1011|  const variable1009 = 1009\n1012|  const variable1010 = 1010\n1013|  const variable1011 = 1011\n1014|  const variable1012 = 1012\n1015|  const variable1013 = 1013\n1016|  const variable1014 = 1014\n1017|  const variable1015 = 1015\n1018|  const variable1016 = 1016\n1019|  const variable1017 = 1017\n1020|  const variable1018 = 1018\n1021|  const variable1019 = 1019\n1022|  const variable1020 = 1020\n1023|  const variable1021 = 1021\n1024|  const variable1022 = 1022\n1025|  const variable1023 = 1023\n1026|  const variable1024 = 1024\n1027|  const variable1025 = 1025\n1028|  const variable1026 = 1026\n1029|  const variable1027 = 1027\n1030|  const variable1028 = 1028\n1031|  const variable1029 = 1029\n1032|  const variable1030 = 1030\n1033|  const variable1031 = 1031\n1034|  const variable1032 = 1032\n1035|  const variable1033 = 1033\n1036|  const variable1034 = 1034\n1037|  const variable1035 = 1035\n1038|  const variable1036 = 1036\n1039|  const variable1037 = 1037\n1040|  const variable1038 = 1038\n1041|  const variable1039 = 1039\n1042|  const variable1040 = 1040\n1043|  const variable1041 = 1041\n1044|  const variable1042 = 1042\n1045|  const variable1043 = 1043\n1046|  const variable1044 = 1044\n1047|  const variable1045 = 1045\n1048|  const variable1046 = 1046\n1049|  const variable1047 = 1047\n1050|  const variable1048 = 1048\n1051|  const variable1049 = 1049\n1052|  const variable1050 = 1050\n1053|  const variable1051 = 1051\n1054|  const variable1052 = 1052\n1055|  const variable1053 = 1053\n1056|  const variable1054 = 1054\n1057|  const variable1055 = 1055\n1058|  const variable1056 = 1056\n1059|  const variable1057 = 1057\n1060|  const variable1058 = 1058\n1061|  const variable1059 = 1059\n1062|  const variable1060 = 1060\n1063|  const variable1061 = 1061\n1064|  const variable1062 = 1062\n1065|  const variable1063 = 1063\n1066|  const variable1064 = 1064\n1067|  const variable1065 = 1065\n1068|  const variable1066 = 1066\n1069|  const variable1067 = 1067\n1070|  const variable1068 = 1068\n1071|  const variable1069 = 1069\n1072|  const variable1070 = 1070\n1073|  const variable1071 = 1071\n1074|  const variable1072 = 1072\n1075|  const variable1073 = 1073\n1076|  const variable1074 = 1074\n1077|  const variable1075 = 1075\n1078|  const variable1076 = 1076\n1079|  const variable1077 = 1077\n1080|  const variable1078 = 1078\n1081|  const variable1079 = 1079\n1082|  const variable1080 = 1080\n1083|  const variable1081 = 1081\n1084|  const variable1082 = 1082\n1085|  const variable1083 = 1083\n1086|  const variable1084 = 1084\n1087|  const variable1085 = 1085\n1088|  const variable1086 = 1086\n1089|  const variable1087 = 1087\n1090|  const variable1088 = 1088\n1091|  const variable1089 = 1089\n1092|  const variable1090 = 1090\n1093|  const variable1091 = 1091\n1094|  const variable1092 = 1092\n1095|  const variable1093 = 1093\n1096|  const variable1094 = 1094\n1097|  const variable1095 = 1095\n1098|  const variable1096 = 1096\n1099|  const variable1097 = 1097\n1100|  const variable1098 = 1098\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">
◼=602|// DONE: section 6
◼=702|// DONE: section 7
◼=802|// DONE: section 8
◼=902|// DONE: section 9
◼=1002|// DONE: section 10
</FILE>