@sap-ai-sdk/prompt-registry 2.3.1-20251223013357.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/client/prompt-registry/index.d.ts +1 -0
  2. package/dist/client/prompt-registry/index.d.ts.map +1 -1
  3. package/dist/client/prompt-registry/index.js +1 -0
  4. package/dist/client/prompt-registry/index.js.map +1 -1
  5. package/dist/client/prompt-registry/orchestration-configs-api.d.ts +89 -0
  6. package/dist/client/prompt-registry/orchestration-configs-api.d.ts.map +1 -0
  7. package/dist/client/prompt-registry/orchestration-configs-api.js +90 -0
  8. package/dist/client/prompt-registry/orchestration-configs-api.js.map +1 -0
  9. package/dist/client/prompt-registry/prompt-templates-api.d.ts +42 -6
  10. package/dist/client/prompt-registry/prompt-templates-api.d.ts.map +1 -1
  11. package/dist/client/prompt-registry/prompt-templates-api.js +36 -18
  12. package/dist/client/prompt-registry/prompt-templates-api.js.map +1 -1
  13. package/dist/client/prompt-registry/schema/assistant-chat-message.d.ts +12 -0
  14. package/dist/client/prompt-registry/schema/assistant-chat-message.d.ts.map +1 -0
  15. package/dist/client/prompt-registry/schema/assistant-chat-message.js +2 -0
  16. package/dist/client/prompt-registry/schema/assistant-chat-message.js.map +1 -0
  17. package/dist/client/prompt-registry/schema/azure-content-safety-input-filter-config.d.ts +13 -0
  18. package/dist/client/prompt-registry/schema/azure-content-safety-input-filter-config.d.ts.map +1 -0
  19. package/dist/client/prompt-registry/schema/azure-content-safety-input-filter-config.js +2 -0
  20. package/dist/client/prompt-registry/schema/azure-content-safety-input-filter-config.js.map +1 -0
  21. package/dist/client/prompt-registry/schema/azure-content-safety-input.d.ts +15 -0
  22. package/dist/client/prompt-registry/schema/azure-content-safety-input.d.ts.map +1 -0
  23. package/dist/client/prompt-registry/schema/azure-content-safety-input.js +2 -0
  24. package/dist/client/prompt-registry/schema/azure-content-safety-input.js.map +1 -0
  25. package/dist/client/prompt-registry/schema/azure-content-safety-output-filter-config.d.ts +13 -0
  26. package/dist/client/prompt-registry/schema/azure-content-safety-output-filter-config.d.ts.map +1 -0
  27. package/dist/client/prompt-registry/schema/azure-content-safety-output-filter-config.js +2 -0
  28. package/dist/client/prompt-registry/schema/azure-content-safety-output-filter-config.js.map +1 -0
  29. package/dist/client/prompt-registry/schema/azure-content-safety-output.d.ts +15 -0
  30. package/dist/client/prompt-registry/schema/azure-content-safety-output.d.ts.map +1 -0
  31. package/dist/client/prompt-registry/schema/azure-content-safety-output.js +2 -0
  32. package/dist/client/prompt-registry/schema/azure-content-safety-output.js.map +1 -0
  33. package/dist/client/prompt-registry/schema/azure-threshold.d.ts +5 -0
  34. package/dist/client/prompt-registry/schema/azure-threshold.d.ts.map +1 -0
  35. package/dist/client/prompt-registry/schema/azure-threshold.js +7 -0
  36. package/dist/client/prompt-registry/schema/azure-threshold.js.map +1 -0
  37. package/dist/client/prompt-registry/schema/chat-message-content.d.ts +6 -0
  38. package/dist/client/prompt-registry/schema/chat-message-content.d.ts.map +1 -0
  39. package/dist/client/prompt-registry/schema/chat-message-content.js +2 -0
  40. package/dist/client/prompt-registry/schema/chat-message-content.js.map +1 -0
  41. package/dist/client/prompt-registry/schema/chat-message.d.ts +10 -0
  42. package/dist/client/prompt-registry/schema/chat-message.d.ts.map +1 -0
  43. package/dist/client/prompt-registry/schema/chat-message.js +2 -0
  44. package/dist/client/prompt-registry/schema/chat-message.js.map +1 -0
  45. package/dist/client/prompt-registry/schema/data-repository-type.d.ts +5 -0
  46. package/dist/client/prompt-registry/schema/data-repository-type.d.ts.map +1 -0
  47. package/dist/client/prompt-registry/schema/data-repository-type.js +7 -0
  48. package/dist/client/prompt-registry/schema/data-repository-type.js.map +1 -0
  49. package/dist/client/prompt-registry/schema/developer-chat-message.d.ts +9 -0
  50. package/dist/client/prompt-registry/schema/developer-chat-message.d.ts.map +1 -0
  51. package/dist/client/prompt-registry/schema/developer-chat-message.js +2 -0
  52. package/dist/client/prompt-registry/schema/developer-chat-message.js.map +1 -0
  53. package/dist/client/prompt-registry/schema/document-grounding-filter.d.ts +33 -0
  54. package/dist/client/prompt-registry/schema/document-grounding-filter.d.ts.map +1 -0
  55. package/dist/client/prompt-registry/schema/document-grounding-filter.js +2 -0
  56. package/dist/client/prompt-registry/schema/document-grounding-filter.js.map +1 -0
  57. package/dist/client/prompt-registry/schema/dpi-config.d.ts +34 -0
  58. package/dist/client/prompt-registry/schema/dpi-config.d.ts.map +1 -0
  59. package/dist/client/prompt-registry/schema/dpi-config.js +2 -0
  60. package/dist/client/prompt-registry/schema/dpi-config.js.map +1 -0
  61. package/dist/client/prompt-registry/schema/dpi-custom-entity.d.ts +15 -0
  62. package/dist/client/prompt-registry/schema/dpi-custom-entity.d.ts.map +1 -0
  63. package/dist/client/prompt-registry/schema/dpi-custom-entity.js +2 -0
  64. package/dist/client/prompt-registry/schema/dpi-custom-entity.js.map +1 -0
  65. package/dist/client/prompt-registry/schema/dpi-entities.d.ts +5 -0
  66. package/dist/client/prompt-registry/schema/dpi-entities.d.ts.map +1 -0
  67. package/dist/client/prompt-registry/schema/dpi-entities.js +7 -0
  68. package/dist/client/prompt-registry/schema/dpi-entities.js.map +1 -0
  69. package/dist/client/prompt-registry/schema/dpi-entity-config.d.ts +7 -0
  70. package/dist/client/prompt-registry/schema/dpi-entity-config.d.ts.map +1 -0
  71. package/dist/client/prompt-registry/schema/dpi-entity-config.js +2 -0
  72. package/dist/client/prompt-registry/schema/dpi-entity-config.js.map +1 -0
  73. package/dist/client/prompt-registry/schema/dpi-method-constant.d.ts +12 -0
  74. package/dist/client/prompt-registry/schema/dpi-method-constant.d.ts.map +1 -0
  75. package/dist/client/prompt-registry/schema/dpi-method-constant.js +7 -0
  76. package/dist/client/prompt-registry/schema/dpi-method-constant.js.map +1 -0
  77. package/dist/client/prompt-registry/schema/dpi-method-fabricated-data.d.ts +7 -0
  78. package/dist/client/prompt-registry/schema/dpi-method-fabricated-data.d.ts.map +1 -0
  79. package/dist/client/prompt-registry/schema/dpi-method-fabricated-data.js +7 -0
  80. package/dist/client/prompt-registry/schema/dpi-method-fabricated-data.js.map +1 -0
  81. package/dist/client/prompt-registry/schema/dpi-standard-entity.d.ts +14 -0
  82. package/dist/client/prompt-registry/schema/dpi-standard-entity.d.ts.map +1 -0
  83. package/dist/client/prompt-registry/schema/dpi-standard-entity.js +2 -0
  84. package/dist/client/prompt-registry/schema/dpi-standard-entity.js.map +1 -0
  85. package/dist/client/prompt-registry/schema/filtering-module-config.d.ts +16 -0
  86. package/dist/client/prompt-registry/schema/filtering-module-config.d.ts.map +1 -0
  87. package/dist/client/prompt-registry/schema/filtering-module-config.js +2 -0
  88. package/dist/client/prompt-registry/schema/filtering-module-config.js.map +1 -0
  89. package/dist/client/prompt-registry/schema/filtering-stream-options.d.ts +11 -0
  90. package/dist/client/prompt-registry/schema/filtering-stream-options.d.ts.map +1 -0
  91. package/dist/client/prompt-registry/schema/filtering-stream-options.js +7 -0
  92. package/dist/client/prompt-registry/schema/filtering-stream-options.js.map +1 -0
  93. package/dist/client/prompt-registry/schema/global-stream-options.d.ts +28 -0
  94. package/dist/client/prompt-registry/schema/global-stream-options.d.ts.map +1 -0
  95. package/dist/client/prompt-registry/schema/global-stream-options.js +7 -0
  96. package/dist/client/prompt-registry/schema/global-stream-options.js.map +1 -0
  97. package/dist/client/prompt-registry/schema/grounding-filter-id.d.ts +5 -0
  98. package/dist/client/prompt-registry/schema/grounding-filter-id.d.ts.map +1 -0
  99. package/dist/client/prompt-registry/schema/grounding-filter-id.js +7 -0
  100. package/dist/client/prompt-registry/schema/grounding-filter-id.js.map +1 -0
  101. package/dist/client/prompt-registry/schema/grounding-filter-search-configuration.d.ts +14 -0
  102. package/dist/client/prompt-registry/schema/grounding-filter-search-configuration.d.ts.map +1 -0
  103. package/dist/client/prompt-registry/schema/grounding-filter-search-configuration.js +7 -0
  104. package/dist/client/prompt-registry/schema/grounding-filter-search-configuration.js.map +1 -0
  105. package/dist/client/prompt-registry/schema/grounding-module-config.d.ts +36 -0
  106. package/dist/client/prompt-registry/schema/grounding-module-config.d.ts.map +1 -0
  107. package/dist/client/prompt-registry/schema/grounding-module-config.js +2 -0
  108. package/dist/client/prompt-registry/schema/grounding-module-config.js.map +1 -0
  109. package/dist/client/prompt-registry/schema/image-content-url.d.ts +11 -0
  110. package/dist/client/prompt-registry/schema/image-content-url.d.ts.map +1 -0
  111. package/dist/client/prompt-registry/schema/image-content-url.js +7 -0
  112. package/dist/client/prompt-registry/schema/image-content-url.js.map +1 -0
  113. package/dist/client/prompt-registry/schema/index.d.ts +65 -1
  114. package/dist/client/prompt-registry/schema/index.d.ts.map +1 -1
  115. package/dist/client/prompt-registry/schema/index.js +65 -1
  116. package/dist/client/prompt-registry/schema/index.js.map +1 -1
  117. package/dist/client/prompt-registry/schema/input-filter-config.d.ts +7 -0
  118. package/dist/client/prompt-registry/schema/input-filter-config.d.ts.map +1 -0
  119. package/dist/client/prompt-registry/schema/input-filter-config.js +2 -0
  120. package/dist/client/prompt-registry/schema/input-filter-config.js.map +1 -0
  121. package/dist/client/prompt-registry/schema/input-filtering-config.d.ts +12 -0
  122. package/dist/client/prompt-registry/schema/input-filtering-config.d.ts.map +1 -0
  123. package/dist/client/prompt-registry/schema/input-filtering-config.js +2 -0
  124. package/dist/client/prompt-registry/schema/input-filtering-config.js.map +1 -0
  125. package/dist/client/prompt-registry/schema/key-value-list-pair.d.ts +11 -0
  126. package/dist/client/prompt-registry/schema/key-value-list-pair.d.ts.map +1 -0
  127. package/dist/client/prompt-registry/schema/key-value-list-pair.js +7 -0
  128. package/dist/client/prompt-registry/schema/key-value-list-pair.js.map +1 -0
  129. package/dist/client/prompt-registry/schema/llama-guard-38-b-filter-config.d.ts +13 -0
  130. package/dist/client/prompt-registry/schema/llama-guard-38-b-filter-config.d.ts.map +1 -0
  131. package/dist/client/prompt-registry/schema/llama-guard-38-b-filter-config.js +2 -0
  132. package/dist/client/prompt-registry/schema/llama-guard-38-b-filter-config.js.map +1 -0
  133. package/dist/client/prompt-registry/schema/llama-guard-38-b.d.ts +20 -0
  134. package/dist/client/prompt-registry/schema/llama-guard-38-b.d.ts.map +1 -0
  135. package/dist/client/prompt-registry/schema/llama-guard-38-b.js +7 -0
  136. package/dist/client/prompt-registry/schema/llama-guard-38-b.js.map +1 -0
  137. package/dist/client/prompt-registry/schema/llm-model-details.d.ts +44 -0
  138. package/dist/client/prompt-registry/schema/llm-model-details.d.ts.map +1 -0
  139. package/dist/client/prompt-registry/schema/llm-model-details.js +7 -0
  140. package/dist/client/prompt-registry/schema/llm-model-details.js.map +1 -0
  141. package/dist/client/prompt-registry/schema/masking-module-config.d.ts +19 -0
  142. package/dist/client/prompt-registry/schema/masking-module-config.d.ts.map +1 -0
  143. package/dist/client/prompt-registry/schema/masking-module-config.js +2 -0
  144. package/dist/client/prompt-registry/schema/masking-module-config.js.map +1 -0
  145. package/dist/client/prompt-registry/schema/masking-provider-config.d.ts +6 -0
  146. package/dist/client/prompt-registry/schema/masking-provider-config.d.ts.map +1 -0
  147. package/dist/client/prompt-registry/schema/masking-provider-config.js +2 -0
  148. package/dist/client/prompt-registry/schema/masking-provider-config.js.map +1 -0
  149. package/dist/client/prompt-registry/schema/message-tool-call.d.ts +27 -0
  150. package/dist/client/prompt-registry/schema/message-tool-call.d.ts.map +1 -0
  151. package/dist/client/prompt-registry/schema/message-tool-call.js +7 -0
  152. package/dist/client/prompt-registry/schema/message-tool-call.js.map +1 -0
  153. package/dist/client/prompt-registry/schema/message-tool-calls.d.ts +6 -0
  154. package/dist/client/prompt-registry/schema/message-tool-calls.d.ts.map +1 -0
  155. package/dist/client/prompt-registry/schema/message-tool-calls.js +2 -0
  156. package/dist/client/prompt-registry/schema/message-tool-calls.js.map +1 -0
  157. package/dist/client/prompt-registry/schema/module-configs.d.ts +16 -0
  158. package/dist/client/prompt-registry/schema/module-configs.d.ts.map +1 -0
  159. package/dist/client/prompt-registry/schema/module-configs.js +2 -0
  160. package/dist/client/prompt-registry/schema/module-configs.js.map +1 -0
  161. package/dist/client/prompt-registry/schema/orchestration-config-delete-response.d.ts +7 -0
  162. package/dist/client/prompt-registry/schema/orchestration-config-delete-response.d.ts.map +1 -0
  163. package/dist/client/prompt-registry/schema/orchestration-config-delete-response.js +7 -0
  164. package/dist/client/prompt-registry/schema/orchestration-config-delete-response.js.map +1 -0
  165. package/dist/client/prompt-registry/schema/orchestration-config-get-response.d.ts +22 -0
  166. package/dist/client/prompt-registry/schema/orchestration-config-get-response.d.ts.map +1 -0
  167. package/dist/client/prompt-registry/schema/orchestration-config-get-response.js +2 -0
  168. package/dist/client/prompt-registry/schema/orchestration-config-get-response.js.map +1 -0
  169. package/dist/client/prompt-registry/schema/orchestration-config-list-response.d.ts +9 -0
  170. package/dist/client/prompt-registry/schema/orchestration-config-list-response.d.ts.map +1 -0
  171. package/dist/client/prompt-registry/schema/orchestration-config-list-response.js +2 -0
  172. package/dist/client/prompt-registry/schema/orchestration-config-list-response.js.map +1 -0
  173. package/dist/client/prompt-registry/schema/orchestration-config-post-request.d.ts +23 -0
  174. package/dist/client/prompt-registry/schema/orchestration-config-post-request.d.ts.map +1 -0
  175. package/dist/client/prompt-registry/schema/orchestration-config-post-request.js +2 -0
  176. package/dist/client/prompt-registry/schema/orchestration-config-post-request.js.map +1 -0
  177. package/dist/client/prompt-registry/schema/orchestration-config-post-response.d.ts +14 -0
  178. package/dist/client/prompt-registry/schema/orchestration-config-post-response.d.ts.map +1 -0
  179. package/dist/client/prompt-registry/schema/orchestration-config-post-response.js +7 -0
  180. package/dist/client/prompt-registry/schema/orchestration-config-post-response.js.map +1 -0
  181. package/dist/client/prompt-registry/schema/orchestration-config-resource.d.ts +22 -0
  182. package/dist/client/prompt-registry/schema/orchestration-config-resource.d.ts.map +1 -0
  183. package/dist/client/prompt-registry/schema/orchestration-config-resource.js +2 -0
  184. package/dist/client/prompt-registry/schema/orchestration-config-resource.js.map +1 -0
  185. package/dist/client/prompt-registry/schema/orchestration-config.d.ts +10 -0
  186. package/dist/client/prompt-registry/schema/orchestration-config.d.ts.map +1 -0
  187. package/dist/client/prompt-registry/schema/orchestration-config.js +2 -0
  188. package/dist/client/prompt-registry/schema/orchestration-config.js.map +1 -0
  189. package/dist/client/prompt-registry/schema/output-filter-config.d.ts +7 -0
  190. package/dist/client/prompt-registry/schema/output-filter-config.d.ts.map +1 -0
  191. package/dist/client/prompt-registry/schema/output-filter-config.js +2 -0
  192. package/dist/client/prompt-registry/schema/output-filter-config.js.map +1 -0
  193. package/dist/client/prompt-registry/schema/output-filtering-config.d.ts +14 -0
  194. package/dist/client/prompt-registry/schema/output-filtering-config.d.ts.map +1 -0
  195. package/dist/client/prompt-registry/schema/output-filtering-config.js +2 -0
  196. package/dist/client/prompt-registry/schema/output-filtering-config.js.map +1 -0
  197. package/dist/client/prompt-registry/schema/prompt-template-get-response.d.ts +1 -0
  198. package/dist/client/prompt-registry/schema/prompt-template-get-response.d.ts.map +1 -1
  199. package/dist/client/prompt-registry/schema/prompt-template-post-request.d.ts +3 -0
  200. package/dist/client/prompt-registry/schema/prompt-template-post-request.d.ts.map +1 -1
  201. package/dist/client/prompt-registry/schema/prompt-template-spec.d.ts +2 -2
  202. package/dist/client/prompt-registry/schema/prompt-template-spec.d.ts.map +1 -1
  203. package/dist/client/prompt-registry/schema/prompt-template-substitution-response.d.ts +2 -2
  204. package/dist/client/prompt-registry/schema/prompt-template-substitution-response.d.ts.map +1 -1
  205. package/dist/client/prompt-registry/schema/prompt-template.d.ts +7 -0
  206. package/dist/client/prompt-registry/schema/prompt-template.d.ts.map +1 -0
  207. package/dist/client/prompt-registry/schema/prompt-template.js +2 -0
  208. package/dist/client/prompt-registry/schema/prompt-template.js.map +1 -0
  209. package/dist/client/prompt-registry/schema/prompt-templating-module-config.d.ts +15 -0
  210. package/dist/client/prompt-registry/schema/prompt-templating-module-config.d.ts.map +1 -0
  211. package/dist/client/prompt-registry/schema/prompt-templating-module-config.js +2 -0
  212. package/dist/client/prompt-registry/schema/prompt-templating-module-config.js.map +1 -0
  213. package/dist/client/prompt-registry/schema/runtime-orchestration-config-file.d.ts +15 -0
  214. package/dist/client/prompt-registry/schema/runtime-orchestration-config-file.d.ts.map +1 -0
  215. package/dist/client/prompt-registry/schema/runtime-orchestration-config-file.js +2 -0
  216. package/dist/client/prompt-registry/schema/runtime-orchestration-config-file.js.map +1 -0
  217. package/dist/client/prompt-registry/schema/sap-document-translation-apply-to-selector.d.ts +24 -0
  218. package/dist/client/prompt-registry/schema/sap-document-translation-apply-to-selector.d.ts.map +1 -0
  219. package/dist/client/prompt-registry/schema/sap-document-translation-apply-to-selector.js +7 -0
  220. package/dist/client/prompt-registry/schema/sap-document-translation-apply-to-selector.js.map +1 -0
  221. package/dist/client/prompt-registry/schema/sap-document-translation-input.d.ts +36 -0
  222. package/dist/client/prompt-registry/schema/sap-document-translation-input.d.ts.map +1 -0
  223. package/dist/client/prompt-registry/schema/sap-document-translation-input.js +2 -0
  224. package/dist/client/prompt-registry/schema/sap-document-translation-input.js.map +1 -0
  225. package/dist/client/prompt-registry/schema/sap-document-translation-output-target-language.d.ts +6 -0
  226. package/dist/client/prompt-registry/schema/sap-document-translation-output-target-language.d.ts.map +1 -0
  227. package/dist/client/prompt-registry/schema/sap-document-translation-output-target-language.js +2 -0
  228. package/dist/client/prompt-registry/schema/sap-document-translation-output-target-language.js.map +1 -0
  229. package/dist/client/prompt-registry/schema/sap-document-translation-output.d.ts +20 -0
  230. package/dist/client/prompt-registry/schema/sap-document-translation-output.d.ts.map +1 -0
  231. package/dist/client/prompt-registry/schema/sap-document-translation-output.js +2 -0
  232. package/dist/client/prompt-registry/schema/sap-document-translation-output.js.map +1 -0
  233. package/dist/client/prompt-registry/schema/search-document-key-value-list-pair.d.ts +16 -0
  234. package/dist/client/prompt-registry/schema/search-document-key-value-list-pair.d.ts.map +1 -0
  235. package/dist/client/prompt-registry/schema/search-document-key-value-list-pair.js +2 -0
  236. package/dist/client/prompt-registry/schema/search-document-key-value-list-pair.js.map +1 -0
  237. package/dist/client/prompt-registry/schema/search-select-option-enum.d.ts +5 -0
  238. package/dist/client/prompt-registry/schema/search-select-option-enum.d.ts.map +1 -0
  239. package/dist/client/prompt-registry/schema/search-select-option-enum.js +7 -0
  240. package/dist/client/prompt-registry/schema/search-select-option-enum.js.map +1 -0
  241. package/dist/client/prompt-registry/schema/system-chat-message.d.ts +9 -0
  242. package/dist/client/prompt-registry/schema/system-chat-message.d.ts.map +1 -0
  243. package/dist/client/prompt-registry/schema/system-chat-message.js +2 -0
  244. package/dist/client/prompt-registry/schema/system-chat-message.js.map +1 -0
  245. package/dist/client/prompt-registry/schema/template-ref-by-id.d.ts +17 -0
  246. package/dist/client/prompt-registry/schema/template-ref-by-id.d.ts.map +1 -0
  247. package/dist/client/prompt-registry/schema/template-ref-by-id.js +7 -0
  248. package/dist/client/prompt-registry/schema/template-ref-by-id.js.map +1 -0
  249. package/dist/client/prompt-registry/schema/template-ref-by-scenario-name-version.d.ts +27 -0
  250. package/dist/client/prompt-registry/schema/template-ref-by-scenario-name-version.d.ts.map +1 -0
  251. package/dist/client/prompt-registry/schema/template-ref-by-scenario-name-version.js +7 -0
  252. package/dist/client/prompt-registry/schema/template-ref-by-scenario-name-version.js.map +1 -0
  253. package/dist/client/prompt-registry/schema/template-ref.d.ts +12 -0
  254. package/dist/client/prompt-registry/schema/template-ref.d.ts.map +1 -0
  255. package/dist/client/prompt-registry/schema/template-ref.js +2 -0
  256. package/dist/client/prompt-registry/schema/template-ref.js.map +1 -0
  257. package/dist/client/prompt-registry/schema/template.d.ts +36 -3
  258. package/dist/client/prompt-registry/schema/template.d.ts.map +1 -1
  259. package/dist/client/prompt-registry/schema/templating-chat-message.d.ts +7 -0
  260. package/dist/client/prompt-registry/schema/templating-chat-message.d.ts.map +1 -0
  261. package/dist/client/prompt-registry/schema/templating-chat-message.js +2 -0
  262. package/dist/client/prompt-registry/schema/templating-chat-message.js.map +1 -0
  263. package/dist/client/prompt-registry/schema/tool-chat-message.d.ts +13 -0
  264. package/dist/client/prompt-registry/schema/tool-chat-message.d.ts.map +1 -0
  265. package/dist/client/prompt-registry/schema/tool-chat-message.js +2 -0
  266. package/dist/client/prompt-registry/schema/tool-chat-message.js.map +1 -0
  267. package/dist/client/prompt-registry/schema/translation-module-config.d.ts +16 -0
  268. package/dist/client/prompt-registry/schema/translation-module-config.d.ts.map +1 -0
  269. package/dist/client/prompt-registry/schema/translation-module-config.js +2 -0
  270. package/dist/client/prompt-registry/schema/translation-module-config.js.map +1 -0
  271. package/dist/client/prompt-registry/schema/user-chat-message-content-item.d.ts +10 -0
  272. package/dist/client/prompt-registry/schema/user-chat-message-content-item.d.ts.map +1 -0
  273. package/dist/client/prompt-registry/schema/user-chat-message-content-item.js +2 -0
  274. package/dist/client/prompt-registry/schema/user-chat-message-content-item.js.map +1 -0
  275. package/dist/client/prompt-registry/schema/user-chat-message-content.d.ts +6 -0
  276. package/dist/client/prompt-registry/schema/user-chat-message-content.d.ts.map +1 -0
  277. package/dist/client/prompt-registry/schema/user-chat-message-content.js +2 -0
  278. package/dist/client/prompt-registry/schema/user-chat-message-content.js.map +1 -0
  279. package/dist/client/prompt-registry/schema/user-chat-message.d.ts +9 -0
  280. package/dist/client/prompt-registry/schema/user-chat-message.d.ts.map +1 -0
  281. package/dist/client/prompt-registry/schema/user-chat-message.js +2 -0
  282. package/dist/client/prompt-registry/schema/user-chat-message.js.map +1 -0
  283. package/dist/zod/prompt-registry.zod.d.ts +2011 -10
  284. package/dist/zod/prompt-registry.zod.d.ts.map +1 -1
  285. package/dist/zod/prompt-registry.zod.js +1764 -728
  286. package/dist/zod/prompt-registry.zod.js.map +1 -1
  287. package/package.json +2 -2
@@ -3,16 +3,23 @@
3
3
  * Do not edit manually.
4
4
  * Prompt Registry API
5
5
  * Prompt Storage service for Design time & Runtime prompt templates.
6
- * OpenAPI spec version: 0.0.1.
6
+ * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import * as zod from 'zod';
9
9
  /**
10
- * Create or update a prompt template.
10
+ * Create or update a prompt template
11
11
  */
12
+ export const registryControllerPromptControllerCreateUpdatePromptTemplateHeader = zod.object({
13
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
14
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
15
+ });
12
16
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodyNameMax = 120;
17
+ export const registryControllerPromptControllerCreateUpdatePromptTemplateBodyNameRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
13
18
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodyVersionMax = 10;
19
+ export const registryControllerPromptControllerCreateUpdatePromptTemplateBodyVersionRegExp = new RegExp('^[a-zA-Z0-9._-]+$');
14
20
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodyScenarioMax = 120;
15
- export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecTemplateItemContentItemImageUrlDetailDefault = 'auto';
21
+ export const registryControllerPromptControllerCreateUpdatePromptTemplateBodyScenarioRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
22
+ export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecTemplateItemContentItemImageUrlDetailDefault = "auto";
16
23
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaNameMax = 64;
17
24
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
18
25
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaStrictDefault = false;
@@ -20,135 +27,76 @@ export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpe
20
27
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
21
28
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecToolsItemFunctionStrictDefault = false;
22
29
  export const registryControllerPromptControllerCreateUpdatePromptTemplateBody = zod.object({
23
- name: zod
24
- .string()
25
- .max(registryControllerPromptControllerCreateUpdatePromptTemplateBodyNameMax),
26
- version: zod
27
- .string()
28
- .max(registryControllerPromptControllerCreateUpdatePromptTemplateBodyVersionMax),
29
- scenario: zod
30
- .string()
31
- .max(registryControllerPromptControllerCreateUpdatePromptTemplateBodyScenarioMax),
32
- spec: zod.object({
33
- template: zod.array(zod.union([
34
- zod.object({
35
- role: zod.string(),
36
- content: zod.string()
37
- }),
38
- zod.object({
39
- role: zod.string(),
40
- content: zod.array(zod.union([
41
- zod.object({
42
- type: zod.enum(['image_url']),
43
- image_url: zod.object({
44
- url: zod.string(),
45
- detail: zod
46
- .string()
47
- .default(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecTemplateItemContentItemImageUrlDetailDefault)
30
+ "name": zod.string().max(registryControllerPromptControllerCreateUpdatePromptTemplateBodyNameMax).regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodyNameRegExp),
31
+ "version": zod.string().max(registryControllerPromptControllerCreateUpdatePromptTemplateBodyVersionMax).regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodyVersionRegExp),
32
+ "scenario": zod.string().max(registryControllerPromptControllerCreateUpdatePromptTemplateBodyScenarioMax).regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodyScenarioRegExp),
33
+ "spec": zod.object({
34
+ "template": zod.array(zod.union([zod.object({
35
+ "role": zod.string(),
36
+ "content": zod.string()
37
+ }), zod.object({
38
+ "role": zod.string(),
39
+ "content": zod.array(zod.union([zod.object({
40
+ "type": zod.enum(['image_url']),
41
+ "image_url": zod.object({
42
+ "url": zod.string(),
43
+ "detail": zod.string().default(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecTemplateItemContentItemImageUrlDetailDefault)
48
44
  })
49
- }),
50
- zod.object({
51
- type: zod.enum(['text']),
52
- text: zod.string()
53
- })
54
- ]))
55
- })
56
- ])),
57
- defaults: zod.object({}).optional(),
58
- additionalFields: zod
59
- .object({})
60
- .optional()
61
- .describe('DEPRECATED. Please use additional_fields instead.\n'),
62
- response_format: zod
63
- .union([
64
- zod.object({
65
- type: zod
66
- .enum(['text'])
67
- .describe('The type of response format being defined: `text`')
68
- }),
69
- zod.object({
70
- type: zod
71
- .enum(['json_object'])
72
- .describe('The type of response format being defined: `json_object`')
73
- }),
74
- zod.object({
75
- type: zod
76
- .enum(['json_schema'])
77
- .describe('The type of response format being defined: `json_schema`'),
78
- json_schema: zod.object({
79
- description: zod
80
- .string()
81
- .optional()
82
- .describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
83
- name: zod
84
- .string()
85
- .max(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaNameMax)
86
- .regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaNameRegExp)
87
- .describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
88
- schema: zod
89
- .record(zod.string(), zod.unknown())
90
- .optional()
91
- .describe('The schema for the response format, described as a JSON Schema object.'),
92
- strict: zod
93
- .boolean()
94
- .nullish()
95
- .describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
45
+ }), zod.object({
46
+ "type": zod.enum(['text']),
47
+ "text": zod.string()
48
+ })]))
49
+ })])),
50
+ "defaults": zod.object({}).optional(),
51
+ "additionalFields": zod.object({}).optional().describe('DEPRECATED. Please use additional_fields instead.\n'),
52
+ "response_format": zod.union([zod.object({
53
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
54
+ }), zod.object({
55
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
56
+ }), zod.object({
57
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
58
+ "json_schema": zod.object({
59
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
60
+ "name": zod.string().max(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaNameMax).regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
61
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
62
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
96
63
  })
64
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
65
+ "tools": zod.array(zod.object({
66
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
67
+ "function": zod.object({
68
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
69
+ "name": zod.string().max(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecToolsItemFunctionNameMax).regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
70
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
71
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
97
72
  })
98
- ])
99
- .optional()
100
- .describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
101
- tools: zod
102
- .array(zod.object({
103
- type: zod
104
- .enum(['function'])
105
- .describe('The type of the tool. Currently, only `function` is supported.'),
106
- function: zod.object({
107
- description: zod
108
- .string()
109
- .optional()
110
- .describe('A description of what the function does, used by the model to choose when and how to call the function.'),
111
- name: zod
112
- .string()
113
- .max(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecToolsItemFunctionNameMax)
114
- .regex(registryControllerPromptControllerCreateUpdatePromptTemplateBodySpecToolsItemFunctionNameRegExp)
115
- .describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
116
- parameters: zod
117
- .record(zod.string(), zod.unknown())
118
- .optional()
119
- .describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
120
- strict: zod
121
- .boolean()
122
- .nullish()
123
- .describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
124
- })
125
- }))
126
- .optional()
127
- .describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
73
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
128
74
  })
129
75
  });
130
76
  export const registryControllerPromptControllerCreateUpdatePromptTemplateResponse = zod.object({
131
- message: zod.string(),
132
- id: zod.uuid(),
133
- scenario: zod.string(),
134
- name: zod.string(),
135
- version: zod.string()
77
+ "message": zod.string(),
78
+ "id": zod.uuid(),
79
+ "scenario": zod.string(),
80
+ "name": zod.string(),
81
+ "version": zod.string()
136
82
  });
137
83
  /**
138
- * List prompt templates.
84
+ * List prompt templates
139
85
  */
140
- export const registryControllerPromptControllerListPromptTemplatesQueryRetrieveDefault = 'both';
86
+ export const registryControllerPromptControllerListPromptTemplatesQueryRetrieveDefault = "both";
141
87
  export const registryControllerPromptControllerListPromptTemplatesQueryIncludeSpecDefault = false;
142
88
  export const registryControllerPromptControllerListPromptTemplatesQueryParams = zod.object({
143
- scenario: zod.string().optional(),
144
- name: zod.string().optional(),
145
- version: zod.string().optional(),
146
- retrieve: zod
147
- .string()
148
- .default(registryControllerPromptControllerListPromptTemplatesQueryRetrieveDefault),
149
- includeSpec: zod.boolean().optional()
150
- });
151
- export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault = 'auto';
89
+ "scenario": zod.string().optional(),
90
+ "name": zod.string().optional(),
91
+ "version": zod.string().optional(),
92
+ "retrieve": zod.string().default(registryControllerPromptControllerListPromptTemplatesQueryRetrieveDefault),
93
+ "includeSpec": zod.boolean().optional()
94
+ });
95
+ export const registryControllerPromptControllerListPromptTemplatesHeader = zod.object({
96
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
97
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
98
+ });
99
+ export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault = "auto";
152
100
  export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaNameMax = 64;
153
101
  export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
154
102
  export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaStrictDefault = false;
@@ -156,125 +104,73 @@ export const registryControllerPromptControllerListPromptTemplatesResponseResour
156
104
  export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
157
105
  export const registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecToolsItemFunctionStrictDefault = false;
158
106
  export const registryControllerPromptControllerListPromptTemplatesResponse = zod.object({
159
- count: zod.number(),
160
- resources: zod.array(zod.object({
161
- id: zod.uuid().optional(),
162
- name: zod.string().optional(),
163
- version: zod.string().optional(),
164
- scenario: zod.string().optional(),
165
- creationTimestamp: zod.string().optional(),
166
- managedBy: zod.string().optional(),
167
- isVersionHead: zod.boolean().optional(),
168
- spec: zod
169
- .object({
170
- template: zod.array(zod.union([
171
- zod.object({
172
- role: zod.string(),
173
- content: zod.string()
174
- }),
175
- zod.object({
176
- role: zod.string(),
177
- content: zod.array(zod.union([
178
- zod.object({
179
- type: zod.enum(['image_url']),
180
- image_url: zod.object({
181
- url: zod.string(),
182
- detail: zod
183
- .string()
184
- .default(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault)
107
+ "count": zod.number(),
108
+ "resources": zod.array(zod.object({
109
+ "id": zod.uuid().optional(),
110
+ "name": zod.string().optional(),
111
+ "version": zod.string().optional(),
112
+ "scenario": zod.string().optional(),
113
+ "creationTimestamp": zod.string().optional(),
114
+ "managedBy": zod.string().optional(),
115
+ "isVersionHead": zod.boolean().optional(),
116
+ "resourceGroupId": zod.string().optional(),
117
+ "spec": zod.object({
118
+ "template": zod.array(zod.union([zod.object({
119
+ "role": zod.string(),
120
+ "content": zod.string()
121
+ }), zod.object({
122
+ "role": zod.string(),
123
+ "content": zod.array(zod.union([zod.object({
124
+ "type": zod.enum(['image_url']),
125
+ "image_url": zod.object({
126
+ "url": zod.string(),
127
+ "detail": zod.string().default(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault)
185
128
  })
186
- }),
187
- zod.object({
188
- type: zod.enum(['text']),
189
- text: zod.string()
190
- })
191
- ]))
192
- })
193
- ])),
194
- defaults: zod.object({}).optional(),
195
- additionalFields: zod
196
- .object({})
197
- .optional()
198
- .describe('DEPRECATED. Please use additional_fields instead.\n'),
199
- response_format: zod
200
- .union([
201
- zod.object({
202
- type: zod
203
- .enum(['text'])
204
- .describe('The type of response format being defined: `text`')
205
- }),
206
- zod.object({
207
- type: zod
208
- .enum(['json_object'])
209
- .describe('The type of response format being defined: `json_object`')
210
- }),
211
- zod.object({
212
- type: zod
213
- .enum(['json_schema'])
214
- .describe('The type of response format being defined: `json_schema`'),
215
- json_schema: zod.object({
216
- description: zod
217
- .string()
218
- .optional()
219
- .describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
220
- name: zod
221
- .string()
222
- .max(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaNameMax)
223
- .regex(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaNameRegExp)
224
- .describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
225
- schema: zod
226
- .record(zod.string(), zod.unknown())
227
- .optional()
228
- .describe('The schema for the response format, described as a JSON Schema object.'),
229
- strict: zod
230
- .boolean()
231
- .nullish()
232
- .describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
129
+ }), zod.object({
130
+ "type": zod.enum(['text']),
131
+ "text": zod.string()
132
+ })]))
133
+ })])),
134
+ "defaults": zod.object({}).optional(),
135
+ "additionalFields": zod.object({}).optional().describe('DEPRECATED. Please use additional_fields instead.\n'),
136
+ "response_format": zod.union([zod.object({
137
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
138
+ }), zod.object({
139
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
140
+ }), zod.object({
141
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
142
+ "json_schema": zod.object({
143
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
144
+ "name": zod.string().max(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaNameMax).regex(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
145
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
146
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
233
147
  })
148
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
149
+ "tools": zod.array(zod.object({
150
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
151
+ "function": zod.object({
152
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
153
+ "name": zod.string().max(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecToolsItemFunctionNameMax).regex(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
154
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
155
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
234
156
  })
235
- ])
236
- .optional()
237
- .describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
238
- tools: zod
239
- .array(zod.object({
240
- type: zod
241
- .enum(['function'])
242
- .describe('The type of the tool. Currently, only `function` is supported.'),
243
- function: zod.object({
244
- description: zod
245
- .string()
246
- .optional()
247
- .describe('A description of what the function does, used by the model to choose when and how to call the function.'),
248
- name: zod
249
- .string()
250
- .max(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecToolsItemFunctionNameMax)
251
- .regex(registryControllerPromptControllerListPromptTemplatesResponseResourcesItemSpecToolsItemFunctionNameRegExp)
252
- .describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
253
- parameters: zod
254
- .record(zod.string(), zod.unknown())
255
- .optional()
256
- .describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
257
- strict: zod
258
- .boolean()
259
- .nullish()
260
- .describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
261
- })
262
- }))
263
- .optional()
264
- .describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
265
- })
266
- .optional()
157
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
158
+ }).optional()
267
159
  }))
268
160
  });
269
161
  /**
270
- * List prompt template history.
162
+ * List prompt template history
271
163
  */
272
164
  export const registryControllerPromptControllerListPromptTemplateHistoryParams = zod.object({
273
- scenario: zod.string(),
274
- version: zod.string(),
275
- name: zod.string()
165
+ "scenario": zod.string(),
166
+ "version": zod.string(),
167
+ "name": zod.string()
276
168
  });
277
- export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault = 'auto';
169
+ export const registryControllerPromptControllerListPromptTemplateHistoryHeader = zod.object({
170
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
171
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
172
+ });
173
+ export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault = "auto";
278
174
  export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaNameMax = 64;
279
175
  export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
280
176
  export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaStrictDefault = false;
@@ -282,123 +178,71 @@ export const registryControllerPromptControllerListPromptTemplateHistoryResponse
282
178
  export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
283
179
  export const registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecToolsItemFunctionStrictDefault = false;
284
180
  export const registryControllerPromptControllerListPromptTemplateHistoryResponse = zod.object({
285
- count: zod.number(),
286
- resources: zod.array(zod.object({
287
- id: zod.uuid().optional(),
288
- name: zod.string().optional(),
289
- version: zod.string().optional(),
290
- scenario: zod.string().optional(),
291
- creationTimestamp: zod.string().optional(),
292
- managedBy: zod.string().optional(),
293
- isVersionHead: zod.boolean().optional(),
294
- spec: zod
295
- .object({
296
- template: zod.array(zod.union([
297
- zod.object({
298
- role: zod.string(),
299
- content: zod.string()
300
- }),
301
- zod.object({
302
- role: zod.string(),
303
- content: zod.array(zod.union([
304
- zod.object({
305
- type: zod.enum(['image_url']),
306
- image_url: zod.object({
307
- url: zod.string(),
308
- detail: zod
309
- .string()
310
- .default(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault)
181
+ "count": zod.number(),
182
+ "resources": zod.array(zod.object({
183
+ "id": zod.uuid().optional(),
184
+ "name": zod.string().optional(),
185
+ "version": zod.string().optional(),
186
+ "scenario": zod.string().optional(),
187
+ "creationTimestamp": zod.string().optional(),
188
+ "managedBy": zod.string().optional(),
189
+ "isVersionHead": zod.boolean().optional(),
190
+ "resourceGroupId": zod.string().optional(),
191
+ "spec": zod.object({
192
+ "template": zod.array(zod.union([zod.object({
193
+ "role": zod.string(),
194
+ "content": zod.string()
195
+ }), zod.object({
196
+ "role": zod.string(),
197
+ "content": zod.array(zod.union([zod.object({
198
+ "type": zod.enum(['image_url']),
199
+ "image_url": zod.object({
200
+ "url": zod.string(),
201
+ "detail": zod.string().default(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecTemplateItemContentItemImageUrlDetailDefault)
311
202
  })
312
- }),
313
- zod.object({
314
- type: zod.enum(['text']),
315
- text: zod.string()
316
- })
317
- ]))
318
- })
319
- ])),
320
- defaults: zod.object({}).optional(),
321
- additionalFields: zod
322
- .object({})
323
- .optional()
324
- .describe('DEPRECATED. Please use additional_fields instead.\n'),
325
- response_format: zod
326
- .union([
327
- zod.object({
328
- type: zod
329
- .enum(['text'])
330
- .describe('The type of response format being defined: `text`')
331
- }),
332
- zod.object({
333
- type: zod
334
- .enum(['json_object'])
335
- .describe('The type of response format being defined: `json_object`')
336
- }),
337
- zod.object({
338
- type: zod
339
- .enum(['json_schema'])
340
- .describe('The type of response format being defined: `json_schema`'),
341
- json_schema: zod.object({
342
- description: zod
343
- .string()
344
- .optional()
345
- .describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
346
- name: zod
347
- .string()
348
- .max(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaNameMax)
349
- .regex(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaNameRegExp)
350
- .describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
351
- schema: zod
352
- .record(zod.string(), zod.unknown())
353
- .optional()
354
- .describe('The schema for the response format, described as a JSON Schema object.'),
355
- strict: zod
356
- .boolean()
357
- .nullish()
358
- .describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
203
+ }), zod.object({
204
+ "type": zod.enum(['text']),
205
+ "text": zod.string()
206
+ })]))
207
+ })])),
208
+ "defaults": zod.object({}).optional(),
209
+ "additionalFields": zod.object({}).optional().describe('DEPRECATED. Please use additional_fields instead.\n'),
210
+ "response_format": zod.union([zod.object({
211
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
212
+ }), zod.object({
213
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
214
+ }), zod.object({
215
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
216
+ "json_schema": zod.object({
217
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
218
+ "name": zod.string().max(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaNameMax).regex(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
219
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
220
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
359
221
  })
222
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
223
+ "tools": zod.array(zod.object({
224
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
225
+ "function": zod.object({
226
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
227
+ "name": zod.string().max(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecToolsItemFunctionNameMax).regex(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
228
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
229
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
360
230
  })
361
- ])
362
- .optional()
363
- .describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
364
- tools: zod
365
- .array(zod.object({
366
- type: zod
367
- .enum(['function'])
368
- .describe('The type of the tool. Currently, only `function` is supported.'),
369
- function: zod.object({
370
- description: zod
371
- .string()
372
- .optional()
373
- .describe('A description of what the function does, used by the model to choose when and how to call the function.'),
374
- name: zod
375
- .string()
376
- .max(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecToolsItemFunctionNameMax)
377
- .regex(registryControllerPromptControllerListPromptTemplateHistoryResponseResourcesItemSpecToolsItemFunctionNameRegExp)
378
- .describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
379
- parameters: zod
380
- .record(zod.string(), zod.unknown())
381
- .optional()
382
- .describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
383
- strict: zod
384
- .boolean()
385
- .nullish()
386
- .describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
387
- })
388
- }))
389
- .optional()
390
- .describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
391
- })
392
- .optional()
231
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
232
+ }).optional()
393
233
  }))
394
234
  });
395
235
  /**
396
- * Get prompt template by UUID.
236
+ * Get prompt template by UUID
397
237
  */
398
238
  export const registryControllerPromptControllerGetPromptTemplateByUuidParams = zod.object({
399
- promptTemplateId: zod.uuid()
239
+ "promptTemplateId": zod.uuid()
240
+ });
241
+ export const registryControllerPromptControllerGetPromptTemplateByUuidHeader = zod.object({
242
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
243
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
400
244
  });
401
- export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecTemplateItemContentItemImageUrlDetailDefault = 'auto';
245
+ export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecTemplateItemContentItemImageUrlDetailDefault = "auto";
402
246
  export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaNameMax = 64;
403
247
  export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
404
248
  export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaStrictDefault = false;
@@ -406,156 +250,116 @@ export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSp
406
250
  export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
407
251
  export const registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecToolsItemFunctionStrictDefault = false;
408
252
  export const registryControllerPromptControllerGetPromptTemplateByUuidResponse = zod.object({
409
- id: zod.uuid().optional(),
410
- name: zod.string().optional(),
411
- version: zod.string().optional(),
412
- scenario: zod.string().optional(),
413
- creationTimestamp: zod.string().optional(),
414
- managedBy: zod.string().optional(),
415
- isVersionHead: zod.boolean().optional(),
416
- spec: zod
417
- .object({
418
- template: zod.array(zod.union([
419
- zod.object({
420
- role: zod.string(),
421
- content: zod.string()
422
- }),
423
- zod.object({
424
- role: zod.string(),
425
- content: zod.array(zod.union([
426
- zod.object({
427
- type: zod.enum(['image_url']),
428
- image_url: zod.object({
429
- url: zod.string(),
430
- detail: zod
431
- .string()
432
- .default(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecTemplateItemContentItemImageUrlDetailDefault)
253
+ "id": zod.uuid().optional(),
254
+ "name": zod.string().optional(),
255
+ "version": zod.string().optional(),
256
+ "scenario": zod.string().optional(),
257
+ "creationTimestamp": zod.string().optional(),
258
+ "managedBy": zod.string().optional(),
259
+ "isVersionHead": zod.boolean().optional(),
260
+ "resourceGroupId": zod.string().optional(),
261
+ "spec": zod.object({
262
+ "template": zod.array(zod.union([zod.object({
263
+ "role": zod.string(),
264
+ "content": zod.string()
265
+ }), zod.object({
266
+ "role": zod.string(),
267
+ "content": zod.array(zod.union([zod.object({
268
+ "type": zod.enum(['image_url']),
269
+ "image_url": zod.object({
270
+ "url": zod.string(),
271
+ "detail": zod.string().default(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecTemplateItemContentItemImageUrlDetailDefault)
433
272
  })
434
- }),
435
- zod.object({
436
- type: zod.enum(['text']),
437
- text: zod.string()
438
- })
439
- ]))
440
- })
441
- ])),
442
- defaults: zod.object({}).optional(),
443
- additionalFields: zod
444
- .object({})
445
- .optional()
446
- .describe('DEPRECATED. Please use additional_fields instead.\n'),
447
- response_format: zod
448
- .union([
449
- zod.object({
450
- type: zod
451
- .enum(['text'])
452
- .describe('The type of response format being defined: `text`')
453
- }),
454
- zod.object({
455
- type: zod
456
- .enum(['json_object'])
457
- .describe('The type of response format being defined: `json_object`')
458
- }),
459
- zod.object({
460
- type: zod
461
- .enum(['json_schema'])
462
- .describe('The type of response format being defined: `json_schema`'),
463
- json_schema: zod.object({
464
- description: zod
465
- .string()
466
- .optional()
467
- .describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
468
- name: zod
469
- .string()
470
- .max(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaNameMax)
471
- .regex(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaNameRegExp)
472
- .describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
473
- schema: zod
474
- .record(zod.string(), zod.unknown())
475
- .optional()
476
- .describe('The schema for the response format, described as a JSON Schema object.'),
477
- strict: zod
478
- .boolean()
479
- .nullish()
480
- .describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
273
+ }), zod.object({
274
+ "type": zod.enum(['text']),
275
+ "text": zod.string()
276
+ })]))
277
+ })])),
278
+ "defaults": zod.object({}).optional(),
279
+ "additionalFields": zod.object({}).optional().describe('DEPRECATED. Please use additional_fields instead.\n'),
280
+ "response_format": zod.union([zod.object({
281
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
282
+ }), zod.object({
283
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
284
+ }), zod.object({
285
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
286
+ "json_schema": zod.object({
287
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
288
+ "name": zod.string().max(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaNameMax).regex(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
289
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
290
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
481
291
  })
292
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
293
+ "tools": zod.array(zod.object({
294
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
295
+ "function": zod.object({
296
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
297
+ "name": zod.string().max(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecToolsItemFunctionNameMax).regex(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
298
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
299
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
482
300
  })
483
- ])
484
- .optional()
485
- .describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
486
- tools: zod
487
- .array(zod.object({
488
- type: zod
489
- .enum(['function'])
490
- .describe('The type of the tool. Currently, only `function` is supported.'),
491
- function: zod.object({
492
- description: zod
493
- .string()
494
- .optional()
495
- .describe('A description of what the function does, used by the model to choose when and how to call the function.'),
496
- name: zod
497
- .string()
498
- .max(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecToolsItemFunctionNameMax)
499
- .regex(registryControllerPromptControllerGetPromptTemplateByUuidResponseSpecToolsItemFunctionNameRegExp)
500
- .describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
501
- parameters: zod
502
- .record(zod.string(), zod.unknown())
503
- .optional()
504
- .describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
505
- strict: zod
506
- .boolean()
507
- .nullish()
508
- .describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
509
- })
510
- }))
511
- .optional()
512
- .describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
513
- })
514
- .optional()
301
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
302
+ }).optional()
515
303
  });
516
304
  /**
517
- * Delete prompt template.
305
+ * Delete prompt template
518
306
  */
519
307
  export const registryControllerPromptControllerDeletePromptTemplateParams = zod.object({
520
- promptTemplateId: zod.uuid()
308
+ "promptTemplateId": zod.uuid()
309
+ });
310
+ export const registryControllerPromptControllerDeletePromptTemplateHeader = zod.object({
311
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
312
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
521
313
  });
522
314
  export const registryControllerPromptControllerDeletePromptTemplateResponse = zod.object({
523
- message: zod.string()
315
+ "message": zod.string()
524
316
  });
525
317
  /**
526
- * Import prompt template.
318
+ * Import prompt template
527
319
  */
320
+ export const registryControllerPromptControllerImportPromptTemplateHeader = zod.object({
321
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
322
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
323
+ });
528
324
  export const registryControllerPromptControllerImportPromptTemplateBody = zod.object({
529
- file: zod.instanceof(File).optional()
325
+ "file": zod.instanceof(File).optional()
530
326
  });
531
327
  export const registryControllerPromptControllerImportPromptTemplateResponse = zod.object({
532
- message: zod.string(),
533
- id: zod.uuid(),
534
- scenario: zod.string(),
535
- name: zod.string(),
536
- version: zod.string()
328
+ "message": zod.string(),
329
+ "id": zod.uuid(),
330
+ "scenario": zod.string(),
331
+ "name": zod.string(),
332
+ "version": zod.string()
537
333
  });
538
334
  /**
539
- * Export prompt template.
335
+ * Export prompt template
540
336
  */
541
337
  export const registryControllerPromptControllerExportPromptTemplateParams = zod.object({
542
- promptTemplateId: zod.uuid()
338
+ "promptTemplateId": zod.uuid()
339
+ });
340
+ export const registryControllerPromptControllerExportPromptTemplateHeader = zod.object({
341
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
342
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
543
343
  });
544
344
  /**
545
- * Parse prompt template by ID.
345
+ * Parse prompt template by ID
546
346
  */
547
347
  export const registryControllerPromptControllerParsePromptTemplateByIdParams = zod.object({
548
- promptTemplateId: zod.uuid()
348
+ "promptTemplateId": zod.uuid()
549
349
  });
550
350
  export const registryControllerPromptControllerParsePromptTemplateByIdQueryMetadataDefault = false;
551
351
  export const registryControllerPromptControllerParsePromptTemplateByIdQueryParams = zod.object({
552
- metadata: zod.boolean().optional()
352
+ "metadata": zod.boolean().optional()
353
+ });
354
+ export const registryControllerPromptControllerParsePromptTemplateByIdHeader = zod.object({
355
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
356
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
553
357
  });
554
358
  export const registryControllerPromptControllerParsePromptTemplateByIdBody = zod.object({
555
- inputParams: zod.object({}).optional()
359
+ "inputParams": zod.object({}).optional()
556
360
  });
557
- export const registryControllerPromptControllerParsePromptTemplateByIdResponseParsedPromptItemContentItemImageUrlDetailDefault = 'auto';
558
- export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault = 'auto';
361
+ export const registryControllerPromptControllerParsePromptTemplateByIdResponseParsedPromptItemContentItemImageUrlDetailDefault = "auto";
362
+ export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault = "auto";
559
363
  export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaNameMax = 64;
560
364
  export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
561
365
  export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaStrictDefault = false;
@@ -563,160 +367,96 @@ export const registryControllerPromptControllerParsePromptTemplateByIdResponseRe
563
367
  export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
564
368
  export const registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecToolsItemFunctionStrictDefault = false;
565
369
  export const registryControllerPromptControllerParsePromptTemplateByIdResponse = zod.object({
566
- parsedPrompt: zod
567
- .array(zod.union([
568
- zod.object({
569
- role: zod.string(),
570
- content: zod.string()
571
- }),
572
- zod.object({
573
- role: zod.string(),
574
- content: zod.array(zod.union([
575
- zod.object({
576
- type: zod.enum(['image_url']),
577
- image_url: zod.object({
578
- url: zod.string(),
579
- detail: zod
580
- .string()
581
- .default(registryControllerPromptControllerParsePromptTemplateByIdResponseParsedPromptItemContentItemImageUrlDetailDefault)
370
+ "parsedPrompt": zod.array(zod.union([zod.object({
371
+ "role": zod.string(),
372
+ "content": zod.string()
373
+ }), zod.object({
374
+ "role": zod.string(),
375
+ "content": zod.array(zod.union([zod.object({
376
+ "type": zod.enum(['image_url']),
377
+ "image_url": zod.object({
378
+ "url": zod.string(),
379
+ "detail": zod.string().default(registryControllerPromptControllerParsePromptTemplateByIdResponseParsedPromptItemContentItemImageUrlDetailDefault)
582
380
  })
583
- }),
584
- zod.object({
585
- type: zod.enum(['text']),
586
- text: zod.string()
587
- })
588
- ]))
589
- })
590
- ]))
591
- .optional(),
592
- resource: zod
593
- .object({
594
- id: zod.uuid().optional(),
595
- name: zod.string().optional(),
596
- version: zod.string().optional(),
597
- scenario: zod.string().optional(),
598
- creationTimestamp: zod.string().optional(),
599
- managedBy: zod.string().optional(),
600
- isVersionHead: zod.boolean().optional(),
601
- spec: zod
602
- .object({
603
- template: zod.array(zod.union([
604
- zod.object({
605
- role: zod.string(),
606
- content: zod.string()
607
- }),
608
- zod.object({
609
- role: zod.string(),
610
- content: zod.array(zod.union([
611
- zod.object({
612
- type: zod.enum(['image_url']),
613
- image_url: zod.object({
614
- url: zod.string(),
615
- detail: zod
616
- .string()
617
- .default(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault)
381
+ }), zod.object({
382
+ "type": zod.enum(['text']),
383
+ "text": zod.string()
384
+ })]))
385
+ })])).optional(),
386
+ "resource": zod.object({
387
+ "id": zod.uuid().optional(),
388
+ "name": zod.string().optional(),
389
+ "version": zod.string().optional(),
390
+ "scenario": zod.string().optional(),
391
+ "creationTimestamp": zod.string().optional(),
392
+ "managedBy": zod.string().optional(),
393
+ "isVersionHead": zod.boolean().optional(),
394
+ "resourceGroupId": zod.string().optional(),
395
+ "spec": zod.object({
396
+ "template": zod.array(zod.union([zod.object({
397
+ "role": zod.string(),
398
+ "content": zod.string()
399
+ }), zod.object({
400
+ "role": zod.string(),
401
+ "content": zod.array(zod.union([zod.object({
402
+ "type": zod.enum(['image_url']),
403
+ "image_url": zod.object({
404
+ "url": zod.string(),
405
+ "detail": zod.string().default(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault)
618
406
  })
619
- }),
620
- zod.object({
621
- type: zod.enum(['text']),
622
- text: zod.string()
623
- })
624
- ]))
625
- })
626
- ])),
627
- defaults: zod.object({}).optional(),
628
- additionalFields: zod
629
- .object({})
630
- .optional()
631
- .describe('DEPRECATED. Please use additional_fields instead.\n'),
632
- response_format: zod
633
- .union([
634
- zod.object({
635
- type: zod
636
- .enum(['text'])
637
- .describe('The type of response format being defined: `text`')
638
- }),
639
- zod.object({
640
- type: zod
641
- .enum(['json_object'])
642
- .describe('The type of response format being defined: `json_object`')
643
- }),
644
- zod.object({
645
- type: zod
646
- .enum(['json_schema'])
647
- .describe('The type of response format being defined: `json_schema`'),
648
- json_schema: zod.object({
649
- description: zod
650
- .string()
651
- .optional()
652
- .describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
653
- name: zod
654
- .string()
655
- .max(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaNameMax)
656
- .regex(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaNameRegExp)
657
- .describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
658
- schema: zod
659
- .record(zod.string(), zod.unknown())
660
- .optional()
661
- .describe('The schema for the response format, described as a JSON Schema object.'),
662
- strict: zod
663
- .boolean()
664
- .nullish()
665
- .describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
407
+ }), zod.object({
408
+ "type": zod.enum(['text']),
409
+ "text": zod.string()
410
+ })]))
411
+ })])),
412
+ "defaults": zod.object({}).optional(),
413
+ "additionalFields": zod.object({}).optional().describe('DEPRECATED. Please use additional_fields instead.\n'),
414
+ "response_format": zod.union([zod.object({
415
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
416
+ }), zod.object({
417
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
418
+ }), zod.object({
419
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
420
+ "json_schema": zod.object({
421
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
422
+ "name": zod.string().max(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaNameMax).regex(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
423
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
424
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
666
425
  })
426
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
427
+ "tools": zod.array(zod.object({
428
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
429
+ "function": zod.object({
430
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
431
+ "name": zod.string().max(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecToolsItemFunctionNameMax).regex(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
432
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
433
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
667
434
  })
668
- ])
669
- .optional()
670
- .describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
671
- tools: zod
672
- .array(zod.object({
673
- type: zod
674
- .enum(['function'])
675
- .describe('The type of the tool. Currently, only `function` is supported.'),
676
- function: zod.object({
677
- description: zod
678
- .string()
679
- .optional()
680
- .describe('A description of what the function does, used by the model to choose when and how to call the function.'),
681
- name: zod
682
- .string()
683
- .max(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecToolsItemFunctionNameMax)
684
- .regex(registryControllerPromptControllerParsePromptTemplateByIdResponseResourceSpecToolsItemFunctionNameRegExp)
685
- .describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
686
- parameters: zod
687
- .record(zod.string(), zod.unknown())
688
- .optional()
689
- .describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
690
- strict: zod
691
- .boolean()
692
- .nullish()
693
- .describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
694
- })
695
- }))
696
- .optional()
697
- .describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
698
- })
699
- .optional()
700
- })
701
- .optional()
435
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
436
+ }).optional()
437
+ }).optional()
702
438
  });
703
439
  /**
704
- * Parse prompt template by name and version.
440
+ * Parse prompt template by name and version
705
441
  */
706
442
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionParams = zod.object({
707
- scenario: zod.string(),
708
- version: zod.string(),
709
- name: zod.string()
443
+ "scenario": zod.string(),
444
+ "version": zod.string(),
445
+ "name": zod.string()
710
446
  });
711
447
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionQueryMetadataDefault = false;
712
448
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionQueryParams = zod.object({
713
- metadata: zod.boolean().optional()
449
+ "metadata": zod.boolean().optional()
450
+ });
451
+ export const registryControllerPromptControllerParsePromptTemplateByNameVersionHeader = zod.object({
452
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use'),
453
+ "AI-Resource-Group-Scope": zod.enum(['true', 'True', 'false', 'False']).optional().describe('Specify whether the resource group scope is to be used')
714
454
  });
715
455
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionBody = zod.object({
716
- inputParams: zod.object({}).optional()
456
+ "inputParams": zod.object({}).optional()
717
457
  });
718
- export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseParsedPromptItemContentItemImageUrlDetailDefault = 'auto';
719
- export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault = 'auto';
458
+ export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseParsedPromptItemContentItemImageUrlDetailDefault = "auto";
459
+ export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault = "auto";
720
460
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaNameMax = 64;
721
461
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
722
462
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaStrictDefault = false;
@@ -724,141 +464,1437 @@ export const registryControllerPromptControllerParsePromptTemplateByNameVersionR
724
464
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
725
465
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecToolsItemFunctionStrictDefault = false;
726
466
  export const registryControllerPromptControllerParsePromptTemplateByNameVersionResponse = zod.object({
727
- parsedPrompt: zod
728
- .array(zod.union([
729
- zod.object({
730
- role: zod.string(),
731
- content: zod.string()
732
- }),
733
- zod.object({
734
- role: zod.string(),
735
- content: zod.array(zod.union([
736
- zod.object({
737
- type: zod.enum(['image_url']),
738
- image_url: zod.object({
739
- url: zod.string(),
740
- detail: zod
741
- .string()
742
- .default(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseParsedPromptItemContentItemImageUrlDetailDefault)
467
+ "parsedPrompt": zod.array(zod.union([zod.object({
468
+ "role": zod.string(),
469
+ "content": zod.string()
470
+ }), zod.object({
471
+ "role": zod.string(),
472
+ "content": zod.array(zod.union([zod.object({
473
+ "type": zod.enum(['image_url']),
474
+ "image_url": zod.object({
475
+ "url": zod.string(),
476
+ "detail": zod.string().default(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseParsedPromptItemContentItemImageUrlDetailDefault)
743
477
  })
744
- }),
745
- zod.object({
746
- type: zod.enum(['text']),
747
- text: zod.string()
478
+ }), zod.object({
479
+ "type": zod.enum(['text']),
480
+ "text": zod.string()
481
+ })]))
482
+ })])).optional(),
483
+ "resource": zod.object({
484
+ "id": zod.uuid().optional(),
485
+ "name": zod.string().optional(),
486
+ "version": zod.string().optional(),
487
+ "scenario": zod.string().optional(),
488
+ "creationTimestamp": zod.string().optional(),
489
+ "managedBy": zod.string().optional(),
490
+ "isVersionHead": zod.boolean().optional(),
491
+ "resourceGroupId": zod.string().optional(),
492
+ "spec": zod.object({
493
+ "template": zod.array(zod.union([zod.object({
494
+ "role": zod.string(),
495
+ "content": zod.string()
496
+ }), zod.object({
497
+ "role": zod.string(),
498
+ "content": zod.array(zod.union([zod.object({
499
+ "type": zod.enum(['image_url']),
500
+ "image_url": zod.object({
501
+ "url": zod.string(),
502
+ "detail": zod.string().default(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault)
503
+ })
504
+ }), zod.object({
505
+ "type": zod.enum(['text']),
506
+ "text": zod.string()
507
+ })]))
508
+ })])),
509
+ "defaults": zod.object({}).optional(),
510
+ "additionalFields": zod.object({}).optional().describe('DEPRECATED. Please use additional_fields instead.\n'),
511
+ "response_format": zod.union([zod.object({
512
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
513
+ }), zod.object({
514
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
515
+ }), zod.object({
516
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
517
+ "json_schema": zod.object({
518
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
519
+ "name": zod.string().max(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaNameMax).regex(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
520
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
521
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
522
+ })
523
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
524
+ "tools": zod.array(zod.object({
525
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
526
+ "function": zod.object({
527
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
528
+ "name": zod.string().max(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecToolsItemFunctionNameMax).regex(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
529
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
530
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
748
531
  })
749
- ]))
750
- })
751
- ]))
752
- .optional(),
753
- resource: zod
754
- .object({
755
- id: zod.uuid().optional(),
756
- name: zod.string().optional(),
757
- version: zod.string().optional(),
758
- scenario: zod.string().optional(),
759
- creationTimestamp: zod.string().optional(),
760
- managedBy: zod.string().optional(),
761
- isVersionHead: zod.boolean().optional(),
762
- spec: zod
763
- .object({
764
- template: zod.array(zod.union([
765
- zod.object({
766
- role: zod.string(),
767
- content: zod.string()
768
- }),
769
- zod.object({
770
- role: zod.string(),
771
- content: zod.array(zod.union([
772
- zod.object({
773
- type: zod.enum(['image_url']),
774
- image_url: zod.object({
775
- url: zod.string(),
776
- detail: zod
777
- .string()
778
- .default(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecTemplateItemContentItemImageUrlDetailDefault)
532
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
533
+ }).optional()
534
+ }).optional()
535
+ });
536
+ /**
537
+ * Create or update an orchestration config
538
+ */
539
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigHeader = zod.object({
540
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
541
+ });
542
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyNameMax = 120;
543
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyNameRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
544
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyVersionMax = 10;
545
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyVersionRegExp = new RegExp('^[a-zA-Z0-9._-]+$');
546
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyScenarioMax = 120;
547
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyScenarioRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
548
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault = "auto";
549
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax = 64;
550
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
551
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptResponseFormatJsonSchemaStrictDefault = false;
552
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptToolsItemFunctionNameMax = 64;
553
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
554
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptToolsItemFunctionStrictDefault = false;
555
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptTemplateRefScopeDefault = "tenant";
556
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne = "tenant";
557
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelVersionDefault = "latest";
558
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelTimeoutDefault = 600;
559
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelTimeoutMax = 600;
560
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelMaxRetriesDefault = 2;
561
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelMaxRetriesMin = 0;
562
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelMaxRetriesMax = 5;
563
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringInputFiltersItemConfigPromptShieldDefault = false;
564
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringOutputFiltersItemConfigProtectedMaterialCodeDefault = false;
565
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringOutputStreamOptionsOverlapDefault = 0;
566
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringOutputStreamOptionsOverlapMin = 0;
567
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringOutputStreamOptionsOverlapMax = 10000;
568
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
569
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesMaskingMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
570
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin = 0;
571
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin = 0;
572
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDataRepositoriesDefault = ["*"];
573
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax = 1024;
574
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax = 1024;
575
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax = 1024;
576
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax = 1024;
577
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax = 1024;
578
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax = 1024;
579
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesTranslationInputTranslateMessagesHistoryDefault = true;
580
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecStreamEnabledDefault = false;
581
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecStreamChunkSizeDefault = 100;
582
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecStreamChunkSizeMax = 10000;
583
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBody = zod.object({
584
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyNameMax).regex(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyNameRegExp),
585
+ "version": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyVersionMax).regex(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyVersionRegExp),
586
+ "scenario": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyScenarioMax).regex(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodyScenarioRegExp),
587
+ "spec": zod.object({
588
+ "modules": zod.object({
589
+ "prompt_templating": zod.object({
590
+ "prompt": zod.union([zod.object({
591
+ "template": zod.array(zod.union([zod.object({
592
+ "role": zod.enum(['system']),
593
+ "content": zod.union([zod.string(), zod.array(zod.object({
594
+ "type": zod.enum(['text']),
595
+ "text": zod.string()
596
+ })).min(1)])
597
+ }), zod.object({
598
+ "content": zod.union([zod.string(), zod.array(zod.object({
599
+ "type": zod.enum(['text', 'image_url']),
600
+ "text": zod.string().optional(),
601
+ "image_url": zod.object({
602
+ "url": zod.string(),
603
+ "detail": zod.string().default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault)
604
+ }).optional()
605
+ })).min(1)]),
606
+ "role": zod.enum(['user'])
607
+ }), zod.object({
608
+ "role": zod.enum(['assistant']),
609
+ "content": zod.union([zod.string(), zod.array(zod.object({
610
+ "type": zod.enum(['text']),
611
+ "text": zod.string()
612
+ })).min(1)]).optional(),
613
+ "refusal": zod.string().optional(),
614
+ "tool_calls": zod.array(zod.object({
615
+ "id": zod.string().describe('The ID of the tool call.'),
616
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
617
+ "function": zod.object({
618
+ "name": zod.string().describe('The name of the function to call.'),
619
+ "arguments": zod.string().describe('The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.')
620
+ }).describe('The function that the model called.')
621
+ })).optional().describe('The tool calls generated by the model, such as function calls.')
622
+ }), zod.object({
623
+ "role": zod.enum(['tool']),
624
+ "tool_call_id": zod.string(),
625
+ "content": zod.union([zod.string(), zod.array(zod.object({
626
+ "type": zod.enum(['text']),
627
+ "text": zod.string()
628
+ })).min(1)])
629
+ }), zod.object({
630
+ "role": zod.enum(['developer']),
631
+ "content": zod.union([zod.string(), zod.array(zod.object({
632
+ "type": zod.enum(['text']),
633
+ "text": zod.string()
634
+ })).min(1)])
635
+ })])).min(1).describe('A chat message array to be formatted with values from placeholder_values. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.'),
636
+ "defaults": zod.record(zod.string(), zod.string()).optional().describe('Optional default values for the template. If a parameter has no default it is required.'),
637
+ "response_format": zod.union([zod.object({
638
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
639
+ }), zod.object({
640
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
641
+ }), zod.object({
642
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
643
+ "json_schema": zod.object({
644
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
645
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax).regex(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
646
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
647
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
648
+ })
649
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\n'),
650
+ "tools": zod.array(zod.object({
651
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
652
+ "function": zod.object({
653
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
654
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptToolsItemFunctionNameMax).regex(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
655
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
656
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
779
657
  })
780
- }),
781
- zod.object({
782
- type: zod.enum(['text']),
783
- text: zod.string()
784
- })
785
- ]))
658
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
659
+ }), zod.object({
660
+ "template_ref": zod.union([zod.object({
661
+ "id": zod.string().describe('ID of the template in prompt registry'),
662
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptTemplateRefScopeDefault).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
663
+ }), zod.object({
664
+ "scenario": zod.string().describe('Scenario name'),
665
+ "name": zod.string().describe('Name of the template'),
666
+ "version": zod.string().describe('Version of the template'),
667
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
668
+ })]).describe('Reference to a template in the prompt registry by ID or by scenario, name and version')
669
+ })]).describe('The prompt template to be used. Can be either a user defined template or a reference to a template in the prompt registry.\n'),
670
+ "model": zod.object({
671
+ "name": zod.string().describe('Name of the model as in LLM Access configuration'),
672
+ "version": zod.string().default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelVersionDefault).describe('Version of the model to be used'),
673
+ "params": zod.record(zod.string(), zod.unknown()).optional().describe('Additional parameters for the model. Default values are used for mandatory parameters.'),
674
+ "timeout": zod.number().min(1).max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelTimeoutMax).default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelTimeoutDefault).describe('Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models.'),
675
+ "max_retries": zod.number().min(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelMaxRetriesMin).max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelMaxRetriesMax).default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesPromptTemplatingModelMaxRetriesDefault).describe('Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models.')
676
+ }).describe('The model and parameters to be used for the prompt templating. This is the model that will be used to generate the response.\n')
677
+ }),
678
+ "filtering": zod.object({
679
+ "input": zod.object({
680
+ "filters": zod.array(zod.union([zod.object({
681
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
682
+ "config": zod.object({
683
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
684
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
685
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
686
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
687
+ "prompt_shield": zod.boolean().optional().describe('Filter prompts for harmful content such as jailbreaks and prompt injections.')
688
+ }).optional().describe('Filter configuration for Azure Content Safety')
689
+ }), zod.object({
690
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
691
+ "config": zod.object({
692
+ "violent_crimes": zod.boolean().optional(),
693
+ "non_violent_crimes": zod.boolean().optional(),
694
+ "sex_crimes": zod.boolean().optional(),
695
+ "child_exploitation": zod.boolean().optional(),
696
+ "defamation": zod.boolean().optional(),
697
+ "specialized_advice": zod.boolean().optional(),
698
+ "privacy": zod.boolean().optional(),
699
+ "intellectual_property": zod.boolean().optional(),
700
+ "indiscriminate_weapons": zod.boolean().optional(),
701
+ "hate": zod.boolean().optional(),
702
+ "self_harm": zod.boolean().optional(),
703
+ "sexual_content": zod.boolean().optional(),
704
+ "elections": zod.boolean().optional(),
705
+ "code_interpreter_abuse": zod.boolean().optional()
706
+ }).describe('Filter configuration for Llama Guard 3 8B')
707
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (input filtering).')
708
+ }).optional().describe('List of provider type and filters'),
709
+ "output": zod.object({
710
+ "filters": zod.array(zod.union([zod.object({
711
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
712
+ "config": zod.object({
713
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
714
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
715
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
716
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
717
+ "protected_material_code": zod.boolean().optional().describe('Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.')
718
+ }).optional().describe('Filter configuration for Azure Content Safety')
719
+ }), zod.object({
720
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
721
+ "config": zod.object({
722
+ "violent_crimes": zod.boolean().optional(),
723
+ "non_violent_crimes": zod.boolean().optional(),
724
+ "sex_crimes": zod.boolean().optional(),
725
+ "child_exploitation": zod.boolean().optional(),
726
+ "defamation": zod.boolean().optional(),
727
+ "specialized_advice": zod.boolean().optional(),
728
+ "privacy": zod.boolean().optional(),
729
+ "intellectual_property": zod.boolean().optional(),
730
+ "indiscriminate_weapons": zod.boolean().optional(),
731
+ "hate": zod.boolean().optional(),
732
+ "self_harm": zod.boolean().optional(),
733
+ "sexual_content": zod.boolean().optional(),
734
+ "elections": zod.boolean().optional(),
735
+ "code_interpreter_abuse": zod.boolean().optional()
736
+ }).describe('Filter configuration for Llama Guard 3 8B')
737
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (output filtering).'),
738
+ "stream_options": zod.object({
739
+ "overlap": zod.number().min(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringOutputStreamOptionsOverlapMin).max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesFilteringOutputStreamOptionsOverlapMax).optional().describe('Number of characters that should be additionally sent to content filtering services from previous chunks as additional context.')
740
+ }).optional().describe('Stream options for output filtering. Will be ignored if stream is false.')
741
+ }).optional().describe('List of provider type and filters')
742
+ }).optional(),
743
+ "masking": zod.union([zod.object({
744
+ "providers": zod.array(zod.object({
745
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
746
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
747
+ "entities": zod.array(zod.union([zod.object({
748
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
749
+ "replacement_strategy": zod.union([zod.object({
750
+ "method": zod.enum(['constant']),
751
+ "value": zod.string().describe('Value to be used for replacement')
752
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
753
+ "method": zod.enum(['fabricated_data'])
754
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
755
+ }), zod.object({
756
+ "regex": zod.string().describe('Regular expression to match the entity'),
757
+ "replacement_strategy": zod.object({
758
+ "method": zod.enum(['constant']),
759
+ "value": zod.string().describe('Value to be used for replacement')
760
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
761
+ })])).min(1).describe('List of entities to be masked'),
762
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
763
+ "mask_grounding_input": zod.object({
764
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
765
+ }).optional()
766
+ })).min(1).describe('List of masking service providers')
767
+ }), zod.object({
768
+ "masking_providers": zod.array(zod.object({
769
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
770
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
771
+ "entities": zod.array(zod.union([zod.object({
772
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
773
+ "replacement_strategy": zod.union([zod.object({
774
+ "method": zod.enum(['constant']),
775
+ "value": zod.string().describe('Value to be used for replacement')
776
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
777
+ "method": zod.enum(['fabricated_data'])
778
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
779
+ }), zod.object({
780
+ "regex": zod.string().describe('Regular expression to match the entity'),
781
+ "replacement_strategy": zod.object({
782
+ "method": zod.enum(['constant']),
783
+ "value": zod.string().describe('Value to be used for replacement')
784
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
785
+ })])).min(1).describe('List of entities to be masked'),
786
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
787
+ "mask_grounding_input": zod.object({
788
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
789
+ }).optional()
790
+ })).min(1).describe('List of masking service providers. **DEPRECATED**: will be removed Sept 15, 2026. Use `providers` property instead.')
791
+ })]).optional(),
792
+ "grounding": zod.object({
793
+ "type": zod.string(),
794
+ "config": zod.object({
795
+ "filters": zod.array(zod.object({
796
+ "id": zod.string().optional().describe('Identifier of this SearchFilter - unique per request.'),
797
+ "search_config": zod.object({
798
+ "max_chunk_count": zod.number().min(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin).optional().describe('Maximum number of chunks to be returned. Cannot be used with \'maxDocumentCount\'.'),
799
+ "max_document_count": zod.number().min(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin).optional().describe('[Only supports \'vector\' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with \'maxChunkCount\'. If maxDocumentCount is given, then only one chunk per document is returned.')
800
+ }).optional(),
801
+ "data_repositories": zod.array(zod.string()).default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDataRepositoriesDefault).describe('Specify [\'*\'] to search across all DataRepositories or give a specific list of DataRepository ids.'),
802
+ "data_repository_type": zod.enum(['vector', 'help.sap.com']).describe('Only include DataRepositories with the given type.'),
803
+ "data_repository_metadata": zod.array(zod.object({
804
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax),
805
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax))
806
+ })).optional().describe('Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=[\'*\']'),
807
+ "document_metadata": zod.array(zod.object({
808
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax),
809
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax)),
810
+ "select_mode": zod.array(zod.enum(['ignoreIfKeyAbsent'])).optional().describe('Select mode for search filters')
811
+ })).optional().describe('Restrict documents considered during search to those annotated with the given metadata.'),
812
+ "chunk_metadata": zod.array(zod.object({
813
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax),
814
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax))
815
+ })).optional().describe('Restrict chunks considered during search to those with the given metadata.')
816
+ })).optional().describe('Document grounding service filters to be used'),
817
+ "placeholders": zod.object({
818
+ "input": zod.array(zod.string()).min(1).describe('Contains the input parameters used for grounding input questions'),
819
+ "output": zod.string().describe('Placeholder name for grounding output')
820
+ }).describe('Placeholders to be used for grounding input questions and output'),
821
+ "metadata_params": zod.array(zod.string()).optional().describe('Parameter name used for specifying metadata parameters')
786
822
  })
787
- ])),
788
- defaults: zod.object({}).optional(),
789
- additionalFields: zod
790
- .object({})
791
- .optional()
792
- .describe('DEPRECATED. Please use additional_fields instead.\n'),
793
- response_format: zod
794
- .union([
795
- zod.object({
796
- type: zod
797
- .enum(['text'])
798
- .describe('The type of response format being defined: `text`')
823
+ }).optional(),
824
+ "translation": zod.object({
825
+ "input": zod.object({
826
+ "type": zod.enum(['sap_document_translation']).describe('Type of document translation provider'),
827
+ "translate_messages_history": zod.boolean().default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecModulesTranslationInputTranslateMessagesHistoryDefault).describe('If true, the messages history will be translated as well.'),
828
+ "config": zod.object({
829
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
830
+ "apply_to": zod.array(zod.object({
831
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
832
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
833
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
834
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')).min(1).optional(),
835
+ "target_language": zod.string().describe('Language to which the text should be translated.')
836
+ }).describe('Configuration for `sap_document_translation` translation provider.')
837
+ }).optional().describe('Configuration for input translation'),
838
+ "output": zod.object({
839
+ "type": zod.enum(['sap_document_translation']).describe('Configuration for `sap_document_translation` translation provider.'),
840
+ "config": zod.object({
841
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
842
+ "target_language": zod.union([zod.string().describe('Language to which the text should be translated.'), zod.object({
843
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
844
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
845
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
846
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')])
847
+ })
848
+ }).optional().describe('Configuration for output translation')
849
+ }).optional().describe('Configuration for translation module')
850
+ }),
851
+ "stream": zod.object({
852
+ "enabled": zod.boolean().optional().describe('If true, the response will be streamed back to the client'),
853
+ "chunk_size": zod.number().min(1).max(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecStreamChunkSizeMax).default(registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigBodySpecStreamChunkSizeDefault).describe('Minimum number of characters per chunk that post-LLM modules operate on.'),
854
+ "delimiters": zod.array(zod.string()).min(1).optional().describe('List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.')
855
+ }).optional().describe('Options for streaming. Will be ignored if enabled is false.')
856
+ })
857
+ });
858
+ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestrationConfigResponse = zod.object({
859
+ "message": zod.string(),
860
+ "id": zod.uuid(),
861
+ "scenario": zod.string(),
862
+ "name": zod.string(),
863
+ "version": zod.string()
864
+ });
865
+ /**
866
+ * List orchestration configs
867
+ */
868
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsQueryRetrieveDefault = "both";
869
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsQueryIncludeSpecDefault = false;
870
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsQueryResolveTemplateRefDefault = false;
871
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsQueryParams = zod.object({
872
+ "scenario": zod.string().optional(),
873
+ "name": zod.string().optional(),
874
+ "version": zod.string().optional(),
875
+ "retrieve": zod.enum(['both', 'imperative', 'declarative']).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsQueryRetrieveDefault),
876
+ "include_spec": zod.boolean().optional(),
877
+ "resolve_template_ref": zod.boolean().optional()
878
+ });
879
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsHeader = zod.object({
880
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
881
+ });
882
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault = "auto";
883
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax = 64;
884
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
885
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaStrictDefault = false;
886
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameMax = 64;
887
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
888
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionStrictDefault = false;
889
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefault = "tenant";
890
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne = "tenant";
891
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelVersionDefault = "latest";
892
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutDefault = 600;
893
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutMax = 600;
894
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesDefault = 2;
895
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMin = 0;
896
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMax = 5;
897
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringInputFiltersItemConfigPromptShieldDefault = false;
898
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringOutputFiltersItemConfigProtectedMaterialCodeDefault = false;
899
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapDefault = 0;
900
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMin = 0;
901
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMax = 10000;
902
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
903
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesMaskingMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
904
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin = 0;
905
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin = 0;
906
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoriesDefault = ["*"];
907
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax = 1024;
908
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax = 1024;
909
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax = 1024;
910
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax = 1024;
911
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax = 1024;
912
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax = 1024;
913
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesTranslationInputTranslateMessagesHistoryDefault = true;
914
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecStreamEnabledDefault = false;
915
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecStreamChunkSizeDefault = 100;
916
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecStreamChunkSizeMax = 10000;
917
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponse = zod.object({
918
+ "count": zod.number(),
919
+ "resources": zod.array(zod.object({
920
+ "id": zod.uuid().optional(),
921
+ "name": zod.string().optional(),
922
+ "version": zod.string().optional(),
923
+ "scenario": zod.string().optional(),
924
+ "creation_timestamp": zod.string().optional(),
925
+ "managed_by": zod.string().optional(),
926
+ "is_version_head": zod.boolean().optional(),
927
+ "resource_group_id": zod.string().optional(),
928
+ "spec": zod.object({
929
+ "modules": zod.object({
930
+ "prompt_templating": zod.object({
931
+ "prompt": zod.union([zod.object({
932
+ "template": zod.array(zod.union([zod.object({
933
+ "role": zod.enum(['system']),
934
+ "content": zod.union([zod.string(), zod.array(zod.object({
935
+ "type": zod.enum(['text']),
936
+ "text": zod.string()
937
+ })).min(1)])
938
+ }), zod.object({
939
+ "content": zod.union([zod.string(), zod.array(zod.object({
940
+ "type": zod.enum(['text', 'image_url']),
941
+ "text": zod.string().optional(),
942
+ "image_url": zod.object({
943
+ "url": zod.string(),
944
+ "detail": zod.string().default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault)
945
+ }).optional()
946
+ })).min(1)]),
947
+ "role": zod.enum(['user'])
948
+ }), zod.object({
949
+ "role": zod.enum(['assistant']),
950
+ "content": zod.union([zod.string(), zod.array(zod.object({
951
+ "type": zod.enum(['text']),
952
+ "text": zod.string()
953
+ })).min(1)]).optional(),
954
+ "refusal": zod.string().optional(),
955
+ "tool_calls": zod.array(zod.object({
956
+ "id": zod.string().describe('The ID of the tool call.'),
957
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
958
+ "function": zod.object({
959
+ "name": zod.string().describe('The name of the function to call.'),
960
+ "arguments": zod.string().describe('The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.')
961
+ }).describe('The function that the model called.')
962
+ })).optional().describe('The tool calls generated by the model, such as function calls.')
963
+ }), zod.object({
964
+ "role": zod.enum(['tool']),
965
+ "tool_call_id": zod.string(),
966
+ "content": zod.union([zod.string(), zod.array(zod.object({
967
+ "type": zod.enum(['text']),
968
+ "text": zod.string()
969
+ })).min(1)])
970
+ }), zod.object({
971
+ "role": zod.enum(['developer']),
972
+ "content": zod.union([zod.string(), zod.array(zod.object({
973
+ "type": zod.enum(['text']),
974
+ "text": zod.string()
975
+ })).min(1)])
976
+ })])).min(1).describe('A chat message array to be formatted with values from placeholder_values. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.'),
977
+ "defaults": zod.record(zod.string(), zod.string()).optional().describe('Optional default values for the template. If a parameter has no default it is required.'),
978
+ "response_format": zod.union([zod.object({
979
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
980
+ }), zod.object({
981
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
982
+ }), zod.object({
983
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
984
+ "json_schema": zod.object({
985
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
986
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax).regex(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
987
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
988
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
989
+ })
990
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\n'),
991
+ "tools": zod.array(zod.object({
992
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
993
+ "function": zod.object({
994
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
995
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameMax).regex(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
996
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
997
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
998
+ })
999
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
1000
+ }), zod.object({
1001
+ "template_ref": zod.union([zod.object({
1002
+ "id": zod.string().describe('ID of the template in prompt registry'),
1003
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefault).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
1004
+ }), zod.object({
1005
+ "scenario": zod.string().describe('Scenario name'),
1006
+ "name": zod.string().describe('Name of the template'),
1007
+ "version": zod.string().describe('Version of the template'),
1008
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
1009
+ })]).describe('Reference to a template in the prompt registry by ID or by scenario, name and version')
1010
+ })]).describe('The prompt template to be used. Can be either a user defined template or a reference to a template in the prompt registry.\n'),
1011
+ "model": zod.object({
1012
+ "name": zod.string().describe('Name of the model as in LLM Access configuration'),
1013
+ "version": zod.string().default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelVersionDefault).describe('Version of the model to be used'),
1014
+ "params": zod.record(zod.string(), zod.unknown()).optional().describe('Additional parameters for the model. Default values are used for mandatory parameters.'),
1015
+ "timeout": zod.number().min(1).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutMax).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutDefault).describe('Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models.'),
1016
+ "max_retries": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMin).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMax).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesDefault).describe('Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models.')
1017
+ }).describe('The model and parameters to be used for the prompt templating. This is the model that will be used to generate the response.\n')
799
1018
  }),
800
- zod.object({
801
- type: zod
802
- .enum(['json_object'])
803
- .describe('The type of response format being defined: `json_object`')
1019
+ "filtering": zod.object({
1020
+ "input": zod.object({
1021
+ "filters": zod.array(zod.union([zod.object({
1022
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
1023
+ "config": zod.object({
1024
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1025
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1026
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1027
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1028
+ "prompt_shield": zod.boolean().optional().describe('Filter prompts for harmful content such as jailbreaks and prompt injections.')
1029
+ }).optional().describe('Filter configuration for Azure Content Safety')
1030
+ }), zod.object({
1031
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
1032
+ "config": zod.object({
1033
+ "violent_crimes": zod.boolean().optional(),
1034
+ "non_violent_crimes": zod.boolean().optional(),
1035
+ "sex_crimes": zod.boolean().optional(),
1036
+ "child_exploitation": zod.boolean().optional(),
1037
+ "defamation": zod.boolean().optional(),
1038
+ "specialized_advice": zod.boolean().optional(),
1039
+ "privacy": zod.boolean().optional(),
1040
+ "intellectual_property": zod.boolean().optional(),
1041
+ "indiscriminate_weapons": zod.boolean().optional(),
1042
+ "hate": zod.boolean().optional(),
1043
+ "self_harm": zod.boolean().optional(),
1044
+ "sexual_content": zod.boolean().optional(),
1045
+ "elections": zod.boolean().optional(),
1046
+ "code_interpreter_abuse": zod.boolean().optional()
1047
+ }).describe('Filter configuration for Llama Guard 3 8B')
1048
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (input filtering).')
1049
+ }).optional().describe('List of provider type and filters'),
1050
+ "output": zod.object({
1051
+ "filters": zod.array(zod.union([zod.object({
1052
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
1053
+ "config": zod.object({
1054
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1055
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1056
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1057
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1058
+ "protected_material_code": zod.boolean().optional().describe('Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.')
1059
+ }).optional().describe('Filter configuration for Azure Content Safety')
1060
+ }), zod.object({
1061
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
1062
+ "config": zod.object({
1063
+ "violent_crimes": zod.boolean().optional(),
1064
+ "non_violent_crimes": zod.boolean().optional(),
1065
+ "sex_crimes": zod.boolean().optional(),
1066
+ "child_exploitation": zod.boolean().optional(),
1067
+ "defamation": zod.boolean().optional(),
1068
+ "specialized_advice": zod.boolean().optional(),
1069
+ "privacy": zod.boolean().optional(),
1070
+ "intellectual_property": zod.boolean().optional(),
1071
+ "indiscriminate_weapons": zod.boolean().optional(),
1072
+ "hate": zod.boolean().optional(),
1073
+ "self_harm": zod.boolean().optional(),
1074
+ "sexual_content": zod.boolean().optional(),
1075
+ "elections": zod.boolean().optional(),
1076
+ "code_interpreter_abuse": zod.boolean().optional()
1077
+ }).describe('Filter configuration for Llama Guard 3 8B')
1078
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (output filtering).'),
1079
+ "stream_options": zod.object({
1080
+ "overlap": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMin).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMax).optional().describe('Number of characters that should be additionally sent to content filtering services from previous chunks as additional context.')
1081
+ }).optional().describe('Stream options for output filtering. Will be ignored if stream is false.')
1082
+ }).optional().describe('List of provider type and filters')
1083
+ }).optional(),
1084
+ "masking": zod.union([zod.object({
1085
+ "providers": zod.array(zod.object({
1086
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
1087
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
1088
+ "entities": zod.array(zod.union([zod.object({
1089
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
1090
+ "replacement_strategy": zod.union([zod.object({
1091
+ "method": zod.enum(['constant']),
1092
+ "value": zod.string().describe('Value to be used for replacement')
1093
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
1094
+ "method": zod.enum(['fabricated_data'])
1095
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
1096
+ }), zod.object({
1097
+ "regex": zod.string().describe('Regular expression to match the entity'),
1098
+ "replacement_strategy": zod.object({
1099
+ "method": zod.enum(['constant']),
1100
+ "value": zod.string().describe('Value to be used for replacement')
1101
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
1102
+ })])).min(1).describe('List of entities to be masked'),
1103
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
1104
+ "mask_grounding_input": zod.object({
1105
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
1106
+ }).optional()
1107
+ })).min(1).describe('List of masking service providers')
1108
+ }), zod.object({
1109
+ "masking_providers": zod.array(zod.object({
1110
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
1111
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
1112
+ "entities": zod.array(zod.union([zod.object({
1113
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
1114
+ "replacement_strategy": zod.union([zod.object({
1115
+ "method": zod.enum(['constant']),
1116
+ "value": zod.string().describe('Value to be used for replacement')
1117
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
1118
+ "method": zod.enum(['fabricated_data'])
1119
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
1120
+ }), zod.object({
1121
+ "regex": zod.string().describe('Regular expression to match the entity'),
1122
+ "replacement_strategy": zod.object({
1123
+ "method": zod.enum(['constant']),
1124
+ "value": zod.string().describe('Value to be used for replacement')
1125
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
1126
+ })])).min(1).describe('List of entities to be masked'),
1127
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
1128
+ "mask_grounding_input": zod.object({
1129
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
1130
+ }).optional()
1131
+ })).min(1).describe('List of masking service providers. **DEPRECATED**: will be removed Sept 15, 2026. Use `providers` property instead.')
1132
+ })]).optional(),
1133
+ "grounding": zod.object({
1134
+ "type": zod.string(),
1135
+ "config": zod.object({
1136
+ "filters": zod.array(zod.object({
1137
+ "id": zod.string().optional().describe('Identifier of this SearchFilter - unique per request.'),
1138
+ "search_config": zod.object({
1139
+ "max_chunk_count": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin).optional().describe('Maximum number of chunks to be returned. Cannot be used with \'maxDocumentCount\'.'),
1140
+ "max_document_count": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin).optional().describe('[Only supports \'vector\' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with \'maxChunkCount\'. If maxDocumentCount is given, then only one chunk per document is returned.')
1141
+ }).optional(),
1142
+ "data_repositories": zod.array(zod.string()).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoriesDefault).describe('Specify [\'*\'] to search across all DataRepositories or give a specific list of DataRepository ids.'),
1143
+ "data_repository_type": zod.enum(['vector', 'help.sap.com']).describe('Only include DataRepositories with the given type.'),
1144
+ "data_repository_metadata": zod.array(zod.object({
1145
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax),
1146
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax))
1147
+ })).optional().describe('Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=[\'*\']'),
1148
+ "document_metadata": zod.array(zod.object({
1149
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax),
1150
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax)),
1151
+ "select_mode": zod.array(zod.enum(['ignoreIfKeyAbsent'])).optional().describe('Select mode for search filters')
1152
+ })).optional().describe('Restrict documents considered during search to those annotated with the given metadata.'),
1153
+ "chunk_metadata": zod.array(zod.object({
1154
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax),
1155
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax))
1156
+ })).optional().describe('Restrict chunks considered during search to those with the given metadata.')
1157
+ })).optional().describe('Document grounding service filters to be used'),
1158
+ "placeholders": zod.object({
1159
+ "input": zod.array(zod.string()).min(1).describe('Contains the input parameters used for grounding input questions'),
1160
+ "output": zod.string().describe('Placeholder name for grounding output')
1161
+ }).describe('Placeholders to be used for grounding input questions and output'),
1162
+ "metadata_params": zod.array(zod.string()).optional().describe('Parameter name used for specifying metadata parameters')
1163
+ })
1164
+ }).optional(),
1165
+ "translation": zod.object({
1166
+ "input": zod.object({
1167
+ "type": zod.enum(['sap_document_translation']).describe('Type of document translation provider'),
1168
+ "translate_messages_history": zod.boolean().default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecModulesTranslationInputTranslateMessagesHistoryDefault).describe('If true, the messages history will be translated as well.'),
1169
+ "config": zod.object({
1170
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
1171
+ "apply_to": zod.array(zod.object({
1172
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
1173
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
1174
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
1175
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')).min(1).optional(),
1176
+ "target_language": zod.string().describe('Language to which the text should be translated.')
1177
+ }).describe('Configuration for `sap_document_translation` translation provider.')
1178
+ }).optional().describe('Configuration for input translation'),
1179
+ "output": zod.object({
1180
+ "type": zod.enum(['sap_document_translation']).describe('Configuration for `sap_document_translation` translation provider.'),
1181
+ "config": zod.object({
1182
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
1183
+ "target_language": zod.union([zod.string().describe('Language to which the text should be translated.'), zod.object({
1184
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
1185
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
1186
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
1187
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')])
1188
+ })
1189
+ }).optional().describe('Configuration for output translation')
1190
+ }).optional().describe('Configuration for translation module')
1191
+ }),
1192
+ "stream": zod.object({
1193
+ "enabled": zod.boolean().optional().describe('If true, the response will be streamed back to the client'),
1194
+ "chunk_size": zod.number().min(1).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecStreamChunkSizeMax).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigsResponseResourcesItemSpecStreamChunkSizeDefault).describe('Minimum number of characters per chunk that post-LLM modules operate on.'),
1195
+ "delimiters": zod.array(zod.string()).min(1).optional().describe('List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.')
1196
+ }).optional().describe('Options for streaming. Will be ignored if enabled is false.')
1197
+ }).optional()
1198
+ }))
1199
+ });
1200
+ /**
1201
+ * List orchestration config history
1202
+ */
1203
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryParams = zod.object({
1204
+ "scenario": zod.string(),
1205
+ "version": zod.string(),
1206
+ "name": zod.string()
1207
+ });
1208
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryQueryIncludeSpecDefault = false;
1209
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryQueryResolveTemplateRefDefault = false;
1210
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryQueryParams = zod.object({
1211
+ "include_spec": zod.boolean().optional(),
1212
+ "resolve_template_ref": zod.boolean().optional()
1213
+ });
1214
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryHeader = zod.object({
1215
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
1216
+ });
1217
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault = "auto";
1218
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax = 64;
1219
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
1220
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaStrictDefault = false;
1221
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameMax = 64;
1222
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
1223
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionStrictDefault = false;
1224
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefault = "tenant";
1225
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne = "tenant";
1226
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelVersionDefault = "latest";
1227
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutDefault = 600;
1228
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutMax = 600;
1229
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesDefault = 2;
1230
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMin = 0;
1231
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMax = 5;
1232
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringInputFiltersItemConfigPromptShieldDefault = false;
1233
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringOutputFiltersItemConfigProtectedMaterialCodeDefault = false;
1234
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapDefault = 0;
1235
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMin = 0;
1236
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMax = 10000;
1237
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
1238
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesMaskingMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
1239
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin = 0;
1240
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin = 0;
1241
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoriesDefault = ["*"];
1242
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax = 1024;
1243
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax = 1024;
1244
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax = 1024;
1245
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax = 1024;
1246
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax = 1024;
1247
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax = 1024;
1248
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesTranslationInputTranslateMessagesHistoryDefault = true;
1249
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecStreamEnabledDefault = false;
1250
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecStreamChunkSizeDefault = 100;
1251
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecStreamChunkSizeMax = 10000;
1252
+ export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponse = zod.object({
1253
+ "count": zod.number(),
1254
+ "resources": zod.array(zod.object({
1255
+ "id": zod.uuid().optional(),
1256
+ "name": zod.string().optional(),
1257
+ "version": zod.string().optional(),
1258
+ "scenario": zod.string().optional(),
1259
+ "creation_timestamp": zod.string().optional(),
1260
+ "managed_by": zod.string().optional(),
1261
+ "is_version_head": zod.boolean().optional(),
1262
+ "resource_group_id": zod.string().optional(),
1263
+ "spec": zod.object({
1264
+ "modules": zod.object({
1265
+ "prompt_templating": zod.object({
1266
+ "prompt": zod.union([zod.object({
1267
+ "template": zod.array(zod.union([zod.object({
1268
+ "role": zod.enum(['system']),
1269
+ "content": zod.union([zod.string(), zod.array(zod.object({
1270
+ "type": zod.enum(['text']),
1271
+ "text": zod.string()
1272
+ })).min(1)])
1273
+ }), zod.object({
1274
+ "content": zod.union([zod.string(), zod.array(zod.object({
1275
+ "type": zod.enum(['text', 'image_url']),
1276
+ "text": zod.string().optional(),
1277
+ "image_url": zod.object({
1278
+ "url": zod.string(),
1279
+ "detail": zod.string().default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault)
1280
+ }).optional()
1281
+ })).min(1)]),
1282
+ "role": zod.enum(['user'])
1283
+ }), zod.object({
1284
+ "role": zod.enum(['assistant']),
1285
+ "content": zod.union([zod.string(), zod.array(zod.object({
1286
+ "type": zod.enum(['text']),
1287
+ "text": zod.string()
1288
+ })).min(1)]).optional(),
1289
+ "refusal": zod.string().optional(),
1290
+ "tool_calls": zod.array(zod.object({
1291
+ "id": zod.string().describe('The ID of the tool call.'),
1292
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
1293
+ "function": zod.object({
1294
+ "name": zod.string().describe('The name of the function to call.'),
1295
+ "arguments": zod.string().describe('The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.')
1296
+ }).describe('The function that the model called.')
1297
+ })).optional().describe('The tool calls generated by the model, such as function calls.')
1298
+ }), zod.object({
1299
+ "role": zod.enum(['tool']),
1300
+ "tool_call_id": zod.string(),
1301
+ "content": zod.union([zod.string(), zod.array(zod.object({
1302
+ "type": zod.enum(['text']),
1303
+ "text": zod.string()
1304
+ })).min(1)])
1305
+ }), zod.object({
1306
+ "role": zod.enum(['developer']),
1307
+ "content": zod.union([zod.string(), zod.array(zod.object({
1308
+ "type": zod.enum(['text']),
1309
+ "text": zod.string()
1310
+ })).min(1)])
1311
+ })])).min(1).describe('A chat message array to be formatted with values from placeholder_values. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.'),
1312
+ "defaults": zod.record(zod.string(), zod.string()).optional().describe('Optional default values for the template. If a parameter has no default it is required.'),
1313
+ "response_format": zod.union([zod.object({
1314
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
1315
+ }), zod.object({
1316
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
1317
+ }), zod.object({
1318
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
1319
+ "json_schema": zod.object({
1320
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
1321
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax).regex(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
1322
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
1323
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
1324
+ })
1325
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\n'),
1326
+ "tools": zod.array(zod.object({
1327
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
1328
+ "function": zod.object({
1329
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
1330
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameMax).regex(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
1331
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
1332
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
1333
+ })
1334
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
1335
+ }), zod.object({
1336
+ "template_ref": zod.union([zod.object({
1337
+ "id": zod.string().describe('ID of the template in prompt registry'),
1338
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefault).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
1339
+ }), zod.object({
1340
+ "scenario": zod.string().describe('Scenario name'),
1341
+ "name": zod.string().describe('Name of the template'),
1342
+ "version": zod.string().describe('Version of the template'),
1343
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
1344
+ })]).describe('Reference to a template in the prompt registry by ID or by scenario, name and version')
1345
+ })]).describe('The prompt template to be used. Can be either a user defined template or a reference to a template in the prompt registry.\n'),
1346
+ "model": zod.object({
1347
+ "name": zod.string().describe('Name of the model as in LLM Access configuration'),
1348
+ "version": zod.string().default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelVersionDefault).describe('Version of the model to be used'),
1349
+ "params": zod.record(zod.string(), zod.unknown()).optional().describe('Additional parameters for the model. Default values are used for mandatory parameters.'),
1350
+ "timeout": zod.number().min(1).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutMax).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelTimeoutDefault).describe('Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models.'),
1351
+ "max_retries": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMin).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesMax).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesPromptTemplatingModelMaxRetriesDefault).describe('Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models.')
1352
+ }).describe('The model and parameters to be used for the prompt templating. This is the model that will be used to generate the response.\n')
804
1353
  }),
805
- zod.object({
806
- type: zod
807
- .enum(['json_schema'])
808
- .describe('The type of response format being defined: `json_schema`'),
809
- json_schema: zod.object({
810
- description: zod
811
- .string()
812
- .optional()
813
- .describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
814
- name: zod
815
- .string()
816
- .max(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaNameMax)
817
- .regex(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecResponseFormatJsonSchemaNameRegExp)
818
- .describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
819
- schema: zod
820
- .record(zod.string(), zod.unknown())
821
- .optional()
822
- .describe('The schema for the response format, described as a JSON Schema object.'),
823
- strict: zod
824
- .boolean()
825
- .nullish()
826
- .describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
1354
+ "filtering": zod.object({
1355
+ "input": zod.object({
1356
+ "filters": zod.array(zod.union([zod.object({
1357
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
1358
+ "config": zod.object({
1359
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1360
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1361
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1362
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1363
+ "prompt_shield": zod.boolean().optional().describe('Filter prompts for harmful content such as jailbreaks and prompt injections.')
1364
+ }).optional().describe('Filter configuration for Azure Content Safety')
1365
+ }), zod.object({
1366
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
1367
+ "config": zod.object({
1368
+ "violent_crimes": zod.boolean().optional(),
1369
+ "non_violent_crimes": zod.boolean().optional(),
1370
+ "sex_crimes": zod.boolean().optional(),
1371
+ "child_exploitation": zod.boolean().optional(),
1372
+ "defamation": zod.boolean().optional(),
1373
+ "specialized_advice": zod.boolean().optional(),
1374
+ "privacy": zod.boolean().optional(),
1375
+ "intellectual_property": zod.boolean().optional(),
1376
+ "indiscriminate_weapons": zod.boolean().optional(),
1377
+ "hate": zod.boolean().optional(),
1378
+ "self_harm": zod.boolean().optional(),
1379
+ "sexual_content": zod.boolean().optional(),
1380
+ "elections": zod.boolean().optional(),
1381
+ "code_interpreter_abuse": zod.boolean().optional()
1382
+ }).describe('Filter configuration for Llama Guard 3 8B')
1383
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (input filtering).')
1384
+ }).optional().describe('List of provider type and filters'),
1385
+ "output": zod.object({
1386
+ "filters": zod.array(zod.union([zod.object({
1387
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
1388
+ "config": zod.object({
1389
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1390
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1391
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1392
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1393
+ "protected_material_code": zod.boolean().optional().describe('Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.')
1394
+ }).optional().describe('Filter configuration for Azure Content Safety')
1395
+ }), zod.object({
1396
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
1397
+ "config": zod.object({
1398
+ "violent_crimes": zod.boolean().optional(),
1399
+ "non_violent_crimes": zod.boolean().optional(),
1400
+ "sex_crimes": zod.boolean().optional(),
1401
+ "child_exploitation": zod.boolean().optional(),
1402
+ "defamation": zod.boolean().optional(),
1403
+ "specialized_advice": zod.boolean().optional(),
1404
+ "privacy": zod.boolean().optional(),
1405
+ "intellectual_property": zod.boolean().optional(),
1406
+ "indiscriminate_weapons": zod.boolean().optional(),
1407
+ "hate": zod.boolean().optional(),
1408
+ "self_harm": zod.boolean().optional(),
1409
+ "sexual_content": zod.boolean().optional(),
1410
+ "elections": zod.boolean().optional(),
1411
+ "code_interpreter_abuse": zod.boolean().optional()
1412
+ }).describe('Filter configuration for Llama Guard 3 8B')
1413
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (output filtering).'),
1414
+ "stream_options": zod.object({
1415
+ "overlap": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMin).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesFilteringOutputStreamOptionsOverlapMax).optional().describe('Number of characters that should be additionally sent to content filtering services from previous chunks as additional context.')
1416
+ }).optional().describe('Stream options for output filtering. Will be ignored if stream is false.')
1417
+ }).optional().describe('List of provider type and filters')
1418
+ }).optional(),
1419
+ "masking": zod.union([zod.object({
1420
+ "providers": zod.array(zod.object({
1421
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
1422
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
1423
+ "entities": zod.array(zod.union([zod.object({
1424
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
1425
+ "replacement_strategy": zod.union([zod.object({
1426
+ "method": zod.enum(['constant']),
1427
+ "value": zod.string().describe('Value to be used for replacement')
1428
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
1429
+ "method": zod.enum(['fabricated_data'])
1430
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
1431
+ }), zod.object({
1432
+ "regex": zod.string().describe('Regular expression to match the entity'),
1433
+ "replacement_strategy": zod.object({
1434
+ "method": zod.enum(['constant']),
1435
+ "value": zod.string().describe('Value to be used for replacement')
1436
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
1437
+ })])).min(1).describe('List of entities to be masked'),
1438
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
1439
+ "mask_grounding_input": zod.object({
1440
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
1441
+ }).optional()
1442
+ })).min(1).describe('List of masking service providers')
1443
+ }), zod.object({
1444
+ "masking_providers": zod.array(zod.object({
1445
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
1446
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
1447
+ "entities": zod.array(zod.union([zod.object({
1448
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
1449
+ "replacement_strategy": zod.union([zod.object({
1450
+ "method": zod.enum(['constant']),
1451
+ "value": zod.string().describe('Value to be used for replacement')
1452
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
1453
+ "method": zod.enum(['fabricated_data'])
1454
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
1455
+ }), zod.object({
1456
+ "regex": zod.string().describe('Regular expression to match the entity'),
1457
+ "replacement_strategy": zod.object({
1458
+ "method": zod.enum(['constant']),
1459
+ "value": zod.string().describe('Value to be used for replacement')
1460
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
1461
+ })])).min(1).describe('List of entities to be masked'),
1462
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
1463
+ "mask_grounding_input": zod.object({
1464
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
1465
+ }).optional()
1466
+ })).min(1).describe('List of masking service providers. **DEPRECATED**: will be removed Sept 15, 2026. Use `providers` property instead.')
1467
+ })]).optional(),
1468
+ "grounding": zod.object({
1469
+ "type": zod.string(),
1470
+ "config": zod.object({
1471
+ "filters": zod.array(zod.object({
1472
+ "id": zod.string().optional().describe('Identifier of this SearchFilter - unique per request.'),
1473
+ "search_config": zod.object({
1474
+ "max_chunk_count": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin).optional().describe('Maximum number of chunks to be returned. Cannot be used with \'maxDocumentCount\'.'),
1475
+ "max_document_count": zod.number().min(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin).optional().describe('[Only supports \'vector\' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with \'maxChunkCount\'. If maxDocumentCount is given, then only one chunk per document is returned.')
1476
+ }).optional(),
1477
+ "data_repositories": zod.array(zod.string()).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoriesDefault).describe('Specify [\'*\'] to search across all DataRepositories or give a specific list of DataRepository ids.'),
1478
+ "data_repository_type": zod.enum(['vector', 'help.sap.com']).describe('Only include DataRepositories with the given type.'),
1479
+ "data_repository_metadata": zod.array(zod.object({
1480
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax),
1481
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax))
1482
+ })).optional().describe('Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=[\'*\']'),
1483
+ "document_metadata": zod.array(zod.object({
1484
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax),
1485
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax)),
1486
+ "select_mode": zod.array(zod.enum(['ignoreIfKeyAbsent'])).optional().describe('Select mode for search filters')
1487
+ })).optional().describe('Restrict documents considered during search to those annotated with the given metadata.'),
1488
+ "chunk_metadata": zod.array(zod.object({
1489
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax),
1490
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax))
1491
+ })).optional().describe('Restrict chunks considered during search to those with the given metadata.')
1492
+ })).optional().describe('Document grounding service filters to be used'),
1493
+ "placeholders": zod.object({
1494
+ "input": zod.array(zod.string()).min(1).describe('Contains the input parameters used for grounding input questions'),
1495
+ "output": zod.string().describe('Placeholder name for grounding output')
1496
+ }).describe('Placeholders to be used for grounding input questions and output'),
1497
+ "metadata_params": zod.array(zod.string()).optional().describe('Parameter name used for specifying metadata parameters')
827
1498
  })
1499
+ }).optional(),
1500
+ "translation": zod.object({
1501
+ "input": zod.object({
1502
+ "type": zod.enum(['sap_document_translation']).describe('Type of document translation provider'),
1503
+ "translate_messages_history": zod.boolean().default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecModulesTranslationInputTranslateMessagesHistoryDefault).describe('If true, the messages history will be translated as well.'),
1504
+ "config": zod.object({
1505
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
1506
+ "apply_to": zod.array(zod.object({
1507
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
1508
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
1509
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
1510
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')).min(1).optional(),
1511
+ "target_language": zod.string().describe('Language to which the text should be translated.')
1512
+ }).describe('Configuration for `sap_document_translation` translation provider.')
1513
+ }).optional().describe('Configuration for input translation'),
1514
+ "output": zod.object({
1515
+ "type": zod.enum(['sap_document_translation']).describe('Configuration for `sap_document_translation` translation provider.'),
1516
+ "config": zod.object({
1517
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
1518
+ "target_language": zod.union([zod.string().describe('Language to which the text should be translated.'), zod.object({
1519
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
1520
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
1521
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
1522
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')])
1523
+ })
1524
+ }).optional().describe('Configuration for output translation')
1525
+ }).optional().describe('Configuration for translation module')
1526
+ }),
1527
+ "stream": zod.object({
1528
+ "enabled": zod.boolean().optional().describe('If true, the response will be streamed back to the client'),
1529
+ "chunk_size": zod.number().min(1).max(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecStreamChunkSizeMax).default(registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryResponseResourcesItemSpecStreamChunkSizeDefault).describe('Minimum number of characters per chunk that post-LLM modules operate on.'),
1530
+ "delimiters": zod.array(zod.string()).min(1).optional().describe('List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.')
1531
+ }).optional().describe('Options for streaming. Will be ignored if enabled is false.')
1532
+ }).optional()
1533
+ }))
1534
+ });
1535
+ /**
1536
+ * Get orchestration config by UUID
1537
+ */
1538
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidParams = zod.object({
1539
+ "orchestrationConfigId": zod.uuid()
1540
+ });
1541
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidQueryResolveTemplateRefDefault = false;
1542
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidQueryParams = zod.object({
1543
+ "resolve_template_ref": zod.boolean().optional()
1544
+ });
1545
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidHeader = zod.object({
1546
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
1547
+ });
1548
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault = "auto";
1549
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax = 64;
1550
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
1551
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaStrictDefault = false;
1552
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptToolsItemFunctionNameMax = 64;
1553
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp = new RegExp('^[a-zA-Z0-9-_]+$');
1554
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptToolsItemFunctionStrictDefault = false;
1555
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptTemplateRefScopeDefault = "tenant";
1556
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne = "tenant";
1557
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelVersionDefault = "latest";
1558
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelTimeoutDefault = 600;
1559
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelTimeoutMax = 600;
1560
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelMaxRetriesDefault = 2;
1561
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelMaxRetriesMin = 0;
1562
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelMaxRetriesMax = 5;
1563
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringInputFiltersItemConfigPromptShieldDefault = false;
1564
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringOutputFiltersItemConfigProtectedMaterialCodeDefault = false;
1565
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringOutputStreamOptionsOverlapDefault = 0;
1566
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringOutputStreamOptionsOverlapMin = 0;
1567
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringOutputStreamOptionsOverlapMax = 10000;
1568
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
1569
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesMaskingMaskingProvidersItemMaskGroundingInputEnabledDefault = false;
1570
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin = 0;
1571
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin = 0;
1572
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDataRepositoriesDefault = ["*"];
1573
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax = 1024;
1574
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax = 1024;
1575
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax = 1024;
1576
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax = 1024;
1577
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax = 1024;
1578
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax = 1024;
1579
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesTranslationInputTranslateMessagesHistoryDefault = true;
1580
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecStreamEnabledDefault = false;
1581
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecStreamChunkSizeDefault = 100;
1582
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecStreamChunkSizeMax = 10000;
1583
+ export const registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponse = zod.object({
1584
+ "id": zod.uuid().optional(),
1585
+ "name": zod.string().optional(),
1586
+ "version": zod.string().optional(),
1587
+ "scenario": zod.string().optional(),
1588
+ "creation_timestamp": zod.string().optional(),
1589
+ "managed_by": zod.string().optional(),
1590
+ "is_version_head": zod.boolean().optional(),
1591
+ "resource_group_id": zod.string().optional(),
1592
+ "spec": zod.object({
1593
+ "modules": zod.object({
1594
+ "prompt_templating": zod.object({
1595
+ "prompt": zod.union([zod.object({
1596
+ "template": zod.array(zod.union([zod.object({
1597
+ "role": zod.enum(['system']),
1598
+ "content": zod.union([zod.string(), zod.array(zod.object({
1599
+ "type": zod.enum(['text']),
1600
+ "text": zod.string()
1601
+ })).min(1)])
1602
+ }), zod.object({
1603
+ "content": zod.union([zod.string(), zod.array(zod.object({
1604
+ "type": zod.enum(['text', 'image_url']),
1605
+ "text": zod.string().optional(),
1606
+ "image_url": zod.object({
1607
+ "url": zod.string(),
1608
+ "detail": zod.string().default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptTemplateItemContentItemImageUrlDetailDefault)
1609
+ }).optional()
1610
+ })).min(1)]),
1611
+ "role": zod.enum(['user'])
1612
+ }), zod.object({
1613
+ "role": zod.enum(['assistant']),
1614
+ "content": zod.union([zod.string(), zod.array(zod.object({
1615
+ "type": zod.enum(['text']),
1616
+ "text": zod.string()
1617
+ })).min(1)]).optional(),
1618
+ "refusal": zod.string().optional(),
1619
+ "tool_calls": zod.array(zod.object({
1620
+ "id": zod.string().describe('The ID of the tool call.'),
1621
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
1622
+ "function": zod.object({
1623
+ "name": zod.string().describe('The name of the function to call.'),
1624
+ "arguments": zod.string().describe('The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.')
1625
+ }).describe('The function that the model called.')
1626
+ })).optional().describe('The tool calls generated by the model, such as function calls.')
1627
+ }), zod.object({
1628
+ "role": zod.enum(['tool']),
1629
+ "tool_call_id": zod.string(),
1630
+ "content": zod.union([zod.string(), zod.array(zod.object({
1631
+ "type": zod.enum(['text']),
1632
+ "text": zod.string()
1633
+ })).min(1)])
1634
+ }), zod.object({
1635
+ "role": zod.enum(['developer']),
1636
+ "content": zod.union([zod.string(), zod.array(zod.object({
1637
+ "type": zod.enum(['text']),
1638
+ "text": zod.string()
1639
+ })).min(1)])
1640
+ })])).min(1).describe('A chat message array to be formatted with values from placeholder_values. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.'),
1641
+ "defaults": zod.record(zod.string(), zod.string()).optional().describe('Optional default values for the template. If a parameter has no default it is required.'),
1642
+ "response_format": zod.union([zod.object({
1643
+ "type": zod.enum(['text']).describe('The type of response format being defined: `text`')
1644
+ }), zod.object({
1645
+ "type": zod.enum(['json_object']).describe('The type of response format being defined: `json_object`')
1646
+ }), zod.object({
1647
+ "type": zod.enum(['json_schema']).describe('The type of response format being defined: `json_schema`'),
1648
+ "json_schema": zod.object({
1649
+ "description": zod.string().optional().describe('A description of what the response format is for, used by the model to determine how to respond in the format.'),
1650
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameMax).regex(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptResponseFormatJsonSchemaNameRegExp).describe('The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
1651
+ "schema": zod.record(zod.string(), zod.unknown()).optional().describe('The schema for the response format, described as a JSON Schema object.'),
1652
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).')
1653
+ })
1654
+ })]).optional().describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\n'),
1655
+ "tools": zod.array(zod.object({
1656
+ "type": zod.enum(['function']).describe('The type of the tool. Currently, only `function` is supported.'),
1657
+ "function": zod.object({
1658
+ "description": zod.string().optional().describe('A description of what the function does, used by the model to choose when and how to call the function.'),
1659
+ "name": zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptToolsItemFunctionNameMax).regex(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptToolsItemFunctionNameRegExp).describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
1660
+ "parameters": zod.record(zod.string(), zod.unknown()).optional().describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
1661
+ "strict": zod.boolean().nullish().describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
1662
+ })
1663
+ })).optional().describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
1664
+ }), zod.object({
1665
+ "template_ref": zod.union([zod.object({
1666
+ "id": zod.string().describe('ID of the template in prompt registry'),
1667
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptTemplateRefScopeDefault).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
1668
+ }), zod.object({
1669
+ "scenario": zod.string().describe('Scenario name'),
1670
+ "name": zod.string().describe('Name of the template'),
1671
+ "version": zod.string().describe('Version of the template'),
1672
+ "scope": zod.enum(['resource_group', 'tenant']).default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingPromptTemplateRefScopeDefaultOne).describe('Defines the scope that is searched for the referenced template. \'tenant\' indicates the template is shared across all resource groups within the tenant, while \'resource_group\' indicates the template is only accessible within the specific resource group.\n')
1673
+ })]).describe('Reference to a template in the prompt registry by ID or by scenario, name and version')
1674
+ })]).describe('The prompt template to be used. Can be either a user defined template or a reference to a template in the prompt registry.\n'),
1675
+ "model": zod.object({
1676
+ "name": zod.string().describe('Name of the model as in LLM Access configuration'),
1677
+ "version": zod.string().default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelVersionDefault).describe('Version of the model to be used'),
1678
+ "params": zod.record(zod.string(), zod.unknown()).optional().describe('Additional parameters for the model. Default values are used for mandatory parameters.'),
1679
+ "timeout": zod.number().min(1).max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelTimeoutMax).default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelTimeoutDefault).describe('Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models.'),
1680
+ "max_retries": zod.number().min(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelMaxRetriesMin).max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelMaxRetriesMax).default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesPromptTemplatingModelMaxRetriesDefault).describe('Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models.')
1681
+ }).describe('The model and parameters to be used for the prompt templating. This is the model that will be used to generate the response.\n')
1682
+ }),
1683
+ "filtering": zod.object({
1684
+ "input": zod.object({
1685
+ "filters": zod.array(zod.union([zod.object({
1686
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
1687
+ "config": zod.object({
1688
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1689
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1690
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1691
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1692
+ "prompt_shield": zod.boolean().optional().describe('Filter prompts for harmful content such as jailbreaks and prompt injections.')
1693
+ }).optional().describe('Filter configuration for Azure Content Safety')
1694
+ }), zod.object({
1695
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
1696
+ "config": zod.object({
1697
+ "violent_crimes": zod.boolean().optional(),
1698
+ "non_violent_crimes": zod.boolean().optional(),
1699
+ "sex_crimes": zod.boolean().optional(),
1700
+ "child_exploitation": zod.boolean().optional(),
1701
+ "defamation": zod.boolean().optional(),
1702
+ "specialized_advice": zod.boolean().optional(),
1703
+ "privacy": zod.boolean().optional(),
1704
+ "intellectual_property": zod.boolean().optional(),
1705
+ "indiscriminate_weapons": zod.boolean().optional(),
1706
+ "hate": zod.boolean().optional(),
1707
+ "self_harm": zod.boolean().optional(),
1708
+ "sexual_content": zod.boolean().optional(),
1709
+ "elections": zod.boolean().optional(),
1710
+ "code_interpreter_abuse": zod.boolean().optional()
1711
+ }).describe('Filter configuration for Llama Guard 3 8B')
1712
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (input filtering).')
1713
+ }).optional().describe('List of provider type and filters'),
1714
+ "output": zod.object({
1715
+ "filters": zod.array(zod.union([zod.object({
1716
+ "type": zod.enum(['azure_content_safety']).describe('Name of the filter provider type'),
1717
+ "config": zod.object({
1718
+ "hate": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1719
+ "self_harm": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1720
+ "sexual": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1721
+ "violence": zod.union([zod.literal(0), zod.literal(2), zod.literal(4), zod.literal(6)]).optional(),
1722
+ "protected_material_code": zod.boolean().optional().describe('Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.')
1723
+ }).optional().describe('Filter configuration for Azure Content Safety')
1724
+ }), zod.object({
1725
+ "type": zod.enum(['llama_guard_3_8b']).describe('Name of the filter provider type'),
1726
+ "config": zod.object({
1727
+ "violent_crimes": zod.boolean().optional(),
1728
+ "non_violent_crimes": zod.boolean().optional(),
1729
+ "sex_crimes": zod.boolean().optional(),
1730
+ "child_exploitation": zod.boolean().optional(),
1731
+ "defamation": zod.boolean().optional(),
1732
+ "specialized_advice": zod.boolean().optional(),
1733
+ "privacy": zod.boolean().optional(),
1734
+ "intellectual_property": zod.boolean().optional(),
1735
+ "indiscriminate_weapons": zod.boolean().optional(),
1736
+ "hate": zod.boolean().optional(),
1737
+ "self_harm": zod.boolean().optional(),
1738
+ "sexual_content": zod.boolean().optional(),
1739
+ "elections": zod.boolean().optional(),
1740
+ "code_interpreter_abuse": zod.boolean().optional()
1741
+ }).describe('Filter configuration for Llama Guard 3 8B')
1742
+ })])).min(1).describe('Configuration for content filtering services that should be used for the given filtering step (output filtering).'),
1743
+ "stream_options": zod.object({
1744
+ "overlap": zod.number().min(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringOutputStreamOptionsOverlapMin).max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesFilteringOutputStreamOptionsOverlapMax).optional().describe('Number of characters that should be additionally sent to content filtering services from previous chunks as additional context.')
1745
+ }).optional().describe('Stream options for output filtering. Will be ignored if stream is false.')
1746
+ }).optional().describe('List of provider type and filters')
1747
+ }).optional(),
1748
+ "masking": zod.union([zod.object({
1749
+ "providers": zod.array(zod.object({
1750
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
1751
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
1752
+ "entities": zod.array(zod.union([zod.object({
1753
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
1754
+ "replacement_strategy": zod.union([zod.object({
1755
+ "method": zod.enum(['constant']),
1756
+ "value": zod.string().describe('Value to be used for replacement')
1757
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
1758
+ "method": zod.enum(['fabricated_data'])
1759
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
1760
+ }), zod.object({
1761
+ "regex": zod.string().describe('Regular expression to match the entity'),
1762
+ "replacement_strategy": zod.object({
1763
+ "method": zod.enum(['constant']),
1764
+ "value": zod.string().describe('Value to be used for replacement')
1765
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
1766
+ })])).min(1).describe('List of entities to be masked'),
1767
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
1768
+ "mask_grounding_input": zod.object({
1769
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
1770
+ }).optional()
1771
+ })).min(1).describe('List of masking service providers')
1772
+ }), zod.object({
1773
+ "masking_providers": zod.array(zod.object({
1774
+ "type": zod.enum(['sap_data_privacy_integration']).describe('Type of masking service provider'),
1775
+ "method": zod.enum(['anonymization', 'pseudonymization']).describe('Type of masking method to be used'),
1776
+ "entities": zod.array(zod.union([zod.object({
1777
+ "type": zod.enum(['profile-person', 'profile-org', 'profile-university', 'profile-location', 'profile-email', 'profile-phone', 'profile-address', 'profile-sapids-internal', 'profile-sapids-public', 'profile-url', 'profile-username-password', 'profile-nationalid', 'profile-iban', 'profile-ssn', 'profile-credit-card-number', 'profile-passport', 'profile-driverlicense', 'profile-nationality', 'profile-religious-group', 'profile-political-group', 'profile-pronouns-gender', 'profile-ethnicity', 'profile-gender', 'profile-sexual-orientation', 'profile-trade-union', 'profile-sensitive-data']).describe('Default entities supported by data privacy and integration service'),
1778
+ "replacement_strategy": zod.union([zod.object({
1779
+ "method": zod.enum(['constant']),
1780
+ "value": zod.string().describe('Value to be used for replacement')
1781
+ }).describe('Replaces the entity with the specified value followed by an incrementing number'), zod.object({
1782
+ "method": zod.enum(['fabricated_data'])
1783
+ }).describe('Replaces the entity with a randomly generated value appropriate to its type.')]).optional().describe('Replacement strategy to be used for the entity')
1784
+ }), zod.object({
1785
+ "regex": zod.string().describe('Regular expression to match the entity'),
1786
+ "replacement_strategy": zod.object({
1787
+ "method": zod.enum(['constant']),
1788
+ "value": zod.string().describe('Value to be used for replacement')
1789
+ }).describe('Replaces the entity with the specified value followed by an incrementing number').describe('Replacement strategy to be used for the entity')
1790
+ })])).min(1).describe('List of entities to be masked'),
1791
+ "allowlist": zod.array(zod.string()).optional().describe('List of strings that should not be masked'),
1792
+ "mask_grounding_input": zod.object({
1793
+ "enabled": zod.boolean().optional().describe('controls whether the input to the grounding module will be masked with the configuration supplied in the masking module')
1794
+ }).optional()
1795
+ })).min(1).describe('List of masking service providers. **DEPRECATED**: will be removed Sept 15, 2026. Use `providers` property instead.')
1796
+ })]).optional(),
1797
+ "grounding": zod.object({
1798
+ "type": zod.string(),
1799
+ "config": zod.object({
1800
+ "filters": zod.array(zod.object({
1801
+ "id": zod.string().optional().describe('Identifier of this SearchFilter - unique per request.'),
1802
+ "search_config": zod.object({
1803
+ "max_chunk_count": zod.number().min(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemSearchConfigMaxChunkCountMin).optional().describe('Maximum number of chunks to be returned. Cannot be used with \'maxDocumentCount\'.'),
1804
+ "max_document_count": zod.number().min(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemSearchConfigMaxDocumentCountMin).optional().describe('[Only supports \'vector\' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with \'maxChunkCount\'. If maxDocumentCount is given, then only one chunk per document is returned.')
1805
+ }).optional(),
1806
+ "data_repositories": zod.array(zod.string()).default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDataRepositoriesDefault).describe('Specify [\'*\'] to search across all DataRepositories or give a specific list of DataRepository ids.'),
1807
+ "data_repository_type": zod.enum(['vector', 'help.sap.com']).describe('Only include DataRepositories with the given type.'),
1808
+ "data_repository_metadata": zod.array(zod.object({
1809
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemKeyMax),
1810
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDataRepositoryMetadataItemValueItemMax))
1811
+ })).optional().describe('Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=[\'*\']'),
1812
+ "document_metadata": zod.array(zod.object({
1813
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDocumentMetadataItemKeyMax),
1814
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemDocumentMetadataItemValueItemMax)),
1815
+ "select_mode": zod.array(zod.enum(['ignoreIfKeyAbsent'])).optional().describe('Select mode for search filters')
1816
+ })).optional().describe('Restrict documents considered during search to those annotated with the given metadata.'),
1817
+ "chunk_metadata": zod.array(zod.object({
1818
+ "key": zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemChunkMetadataItemKeyMax),
1819
+ "value": zod.array(zod.string().max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesGroundingConfigFiltersItemChunkMetadataItemValueItemMax))
1820
+ })).optional().describe('Restrict chunks considered during search to those with the given metadata.')
1821
+ })).optional().describe('Document grounding service filters to be used'),
1822
+ "placeholders": zod.object({
1823
+ "input": zod.array(zod.string()).min(1).describe('Contains the input parameters used for grounding input questions'),
1824
+ "output": zod.string().describe('Placeholder name for grounding output')
1825
+ }).describe('Placeholders to be used for grounding input questions and output'),
1826
+ "metadata_params": zod.array(zod.string()).optional().describe('Parameter name used for specifying metadata parameters')
828
1827
  })
829
- ])
830
- .optional()
831
- .describe('Response format that the model output should adhere to. This is the same as the OpenAI definition.\nCompatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.\n'),
832
- tools: zod
833
- .array(zod.object({
834
- type: zod
835
- .enum(['function'])
836
- .describe('The type of the tool. Currently, only `function` is supported.'),
837
- function: zod.object({
838
- description: zod
839
- .string()
840
- .optional()
841
- .describe('A description of what the function does, used by the model to choose when and how to call the function.'),
842
- name: zod
843
- .string()
844
- .max(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecToolsItemFunctionNameMax)
845
- .regex(registryControllerPromptControllerParsePromptTemplateByNameVersionResponseResourceSpecToolsItemFunctionNameRegExp)
846
- .describe('The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.'),
847
- parameters: zod
848
- .record(zod.string(), zod.unknown())
849
- .optional()
850
- .describe('The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.'),
851
- strict: zod
852
- .boolean()
853
- .nullish()
854
- .describe('Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).')
855
- })
856
- }))
857
- .optional()
858
- .describe('A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.\n')
859
- })
860
- .optional()
861
- })
862
- .optional()
1828
+ }).optional(),
1829
+ "translation": zod.object({
1830
+ "input": zod.object({
1831
+ "type": zod.enum(['sap_document_translation']).describe('Type of document translation provider'),
1832
+ "translate_messages_history": zod.boolean().default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecModulesTranslationInputTranslateMessagesHistoryDefault).describe('If true, the messages history will be translated as well.'),
1833
+ "config": zod.object({
1834
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
1835
+ "apply_to": zod.array(zod.object({
1836
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
1837
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
1838
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
1839
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')).min(1).optional(),
1840
+ "target_language": zod.string().describe('Language to which the text should be translated.')
1841
+ }).describe('Configuration for `sap_document_translation` translation provider.')
1842
+ }).optional().describe('Configuration for input translation'),
1843
+ "output": zod.object({
1844
+ "type": zod.enum(['sap_document_translation']).describe('Configuration for `sap_document_translation` translation provider.'),
1845
+ "config": zod.object({
1846
+ "source_language": zod.string().optional().describe('Language of the text to be translated.'),
1847
+ "target_language": zod.union([zod.string().describe('Language to which the text should be translated.'), zod.object({
1848
+ "category": zod.enum(['placeholders', 'template_roles']).describe('Category to apply translation to.'),
1849
+ "items": zod.array(zod.string()).describe('List of placeholders or roles to apply translation to'),
1850
+ "source_language": zod.string().optional().describe('Language of the text to be translated.')
1851
+ }).describe('This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{\"category\": \"placeholders\", \"items\": [\"user_input\"], \"source_language\": \"de-DE\"}` targets the value of \"user_input\" in `placeholder_values` specified in the request payload; and considers the value to be in German.\n')])
1852
+ })
1853
+ }).optional().describe('Configuration for output translation')
1854
+ }).optional().describe('Configuration for translation module')
1855
+ }),
1856
+ "stream": zod.object({
1857
+ "enabled": zod.boolean().optional().describe('If true, the response will be streamed back to the client'),
1858
+ "chunk_size": zod.number().min(1).max(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecStreamChunkSizeMax).default(registryControllerOrchestrationConfigControllerGetOrchestrationConfigByUuidResponseSpecStreamChunkSizeDefault).describe('Minimum number of characters per chunk that post-LLM modules operate on.'),
1859
+ "delimiters": zod.array(zod.string()).min(1).optional().describe('List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.')
1860
+ }).optional().describe('Options for streaming. Will be ignored if enabled is false.')
1861
+ }).optional()
1862
+ });
1863
+ /**
1864
+ * Delete orchestration config
1865
+ */
1866
+ export const registryControllerOrchestrationConfigControllerDeleteOrchestrationConfigParams = zod.object({
1867
+ "orchestrationConfigId": zod.uuid()
1868
+ });
1869
+ export const registryControllerOrchestrationConfigControllerDeleteOrchestrationConfigHeader = zod.object({
1870
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
1871
+ });
1872
+ export const registryControllerOrchestrationConfigControllerDeleteOrchestrationConfigResponse = zod.object({
1873
+ "message": zod.string()
1874
+ });
1875
+ /**
1876
+ * Import orchestration config
1877
+ */
1878
+ export const registryControllerOrchestrationConfigControllerImportOrchestrationConfigHeader = zod.object({
1879
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
1880
+ });
1881
+ export const registryControllerOrchestrationConfigControllerImportOrchestrationConfigBody = zod.object({
1882
+ "file": zod.instanceof(File).optional()
1883
+ });
1884
+ export const registryControllerOrchestrationConfigControllerImportOrchestrationConfigResponse = zod.object({
1885
+ "message": zod.string(),
1886
+ "id": zod.uuid(),
1887
+ "scenario": zod.string(),
1888
+ "name": zod.string(),
1889
+ "version": zod.string()
1890
+ });
1891
+ /**
1892
+ * Export orchestration config
1893
+ */
1894
+ export const registryControllerOrchestrationConfigControllerExportOrchestrationConfigParams = zod.object({
1895
+ "orchestrationConfigId": zod.uuid()
1896
+ });
1897
+ export const registryControllerOrchestrationConfigControllerExportOrchestrationConfigHeader = zod.object({
1898
+ "AI-Resource-Group": zod.string().optional().describe('Specify a resource group id to use')
863
1899
  });
864
1900
  //# sourceMappingURL=prompt-registry.zod.js.map