Commit 7e146fa
feat(prompts): add includePromptBody parameter to get prompt version endpoints (#5554)
* feat(prompts): add v2 endpoints to get prompt messages from prompt version
Adds new v2 API endpoints under /v2/prompt-2025 that include the full prompt body
(messages, tools, etc.) in the response. This addresses customer feedback requesting
the ability to get all prompt messages from a prompt version via the API endpoint.
New v2 endpoints (include prompt_body in response):
- POST /v2/prompt-2025/query/version
- POST /v2/prompt-2025/query/production-version
- POST /v2/prompt-2025/query/environment-version
Existing v1 endpoints remain unchanged for backwards compatibility:
- POST /v1/prompt-2025/query/version
- POST /v1/prompt-2025/query/production-version
- POST /v1/prompt-2025/query/environment-version
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(prompts): add v2 endpoints to get prompt messages from prompt version
Adds a new GET endpoint to retrieve the full prompt body (messages, tools, etc.)
for a specific prompt version. This addresses customer feedback requesting the
ability to get all prompt messages from a prompt version via the API endpoint.
New endpoint:
- GET /v1/prompt-2025/{promptVersionId}/prompt-body
Existing endpoints remain unchanged for backwards compatibility.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* add docs + autogenerated files
---------
Co-authored-by: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Hammad Shami <hammad@helicone.ai>1 parent fa247bc commit 7e146fa
File tree
16 files changed
+2375
-32
lines changed- bifrost/lib/clients/jawnTypes
- docs
- rest/prompts
- helicone-mcp/src/types
- packages/prompts
- valhalla/jawn/src
- controllers/public
- managers/prompt
- tsoa-build
- private
- public
- web/lib/clients/jawnTypes
16 files changed
+2375
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
276 | 289 | | |
277 | 290 | | |
278 | 291 | | |
| |||
1678 | 1691 | | |
1679 | 1692 | | |
1680 | 1693 | | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1681 | 1746 | | |
1682 | 1747 | | |
1683 | 1748 | | |
| |||
1690 | 1755 | | |
1691 | 1756 | | |
1692 | 1757 | | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1693 | 1763 | | |
1694 | 1764 | | |
1695 | 1765 | | |
| |||
1715 | 1785 | | |
1716 | 1786 | | |
1717 | 1787 | | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1718 | 1794 | | |
1719 | 1795 | | |
1720 | 1796 | | |
| |||
18464 | 18540 | | |
18465 | 18541 | | |
18466 | 18542 | | |
| 18543 | + | |
| 18544 | + | |
| 18545 | + | |
| 18546 | + | |
| 18547 | + | |
| 18548 | + | |
| 18549 | + | |
| 18550 | + | |
| 18551 | + | |
| 18552 | + | |
| 18553 | + | |
| 18554 | + | |
| 18555 | + | |
| 18556 | + | |
| 18557 | + | |
| 18558 | + | |
18467 | 18559 | | |
18468 | 18560 | | |
18469 | 18561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
124 | 137 | | |
125 | 138 | | |
126 | 139 | | |
| |||
1246 | 1259 | | |
1247 | 1260 | | |
1248 | 1261 | | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1249 | 1314 | | |
1250 | 1315 | | |
1251 | 1316 | | |
| |||
1258 | 1323 | | |
1259 | 1324 | | |
1260 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
1261 | 1331 | | |
1262 | 1332 | | |
1263 | 1333 | | |
| |||
1283 | 1353 | | |
1284 | 1354 | | |
1285 | 1355 | | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1286 | 1362 | | |
1287 | 1363 | | |
1288 | 1364 | | |
| |||
2577 | 2653 | | |
2578 | 2654 | | |
2579 | 2655 | | |
2580 | | - | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | 2656 | | |
2585 | 2657 | | |
2586 | 2658 | | |
| |||
5569 | 5641 | | |
5570 | 5642 | | |
5571 | 5643 | | |
| 5644 | + | |
| 5645 | + | |
| 5646 | + | |
| 5647 | + | |
| 5648 | + | |
| 5649 | + | |
| 5650 | + | |
| 5651 | + | |
| 5652 | + | |
| 5653 | + | |
| 5654 | + | |
| 5655 | + | |
| 5656 | + | |
| 5657 | + | |
| 5658 | + | |
| 5659 | + | |
5572 | 5660 | | |
5573 | 5661 | | |
5574 | 5662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
Lines changed: 104 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
0 commit comments