| 7822 | |
| 7823 | `);if(W)X.push({text:W,cacheScope:null});return d("tengu_sysprompt_boundary_found",{blockCount:X.length,staticBlockLength:P.length,dynamicBlockLength:W.length}),X}else d("tengu_sysprompt_missing_boundary_marker",{promptBlockCount:q.length})}let z,Y,$=[];for(let w of q){if(!w)continue;if(w.startsWith("x-anthropic-billing-header"))z=w;else if(If8.has(w))Y=w;else $.push(w)}let A=[];if(z)A.push({text:z,cacheScope:null});if(Y)A.push({text:Y,cacheScope:"org"});let O=$.join(` |
| 7824 | |
| 7825 | `);if(O)A.push({text:O,cacheScope:"org"});return A}function uWK(q,K){return[...q,Object.entries(K).map(([_,z])=>`${_}: ${z}`).join(` |
| 7826 | `)].filter(Boolean)}function Vp8(q,K){if(Object.entries(K).length===0)return q;return[U8({content:`<system-reminder> |
| 7827 | As you answer the user's questions, you can use the following context: |
| 7828 | ${Object.entries(K).map(([_,z])=>`# ${_} |