oci-generativeaiinference 2.122.2 → 2.123.1

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 (325) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +1 -1
  3. package/lib/client.d.ts +1 -1
  4. package/lib/client.js +1 -1
  5. package/lib/model/annotation.d.ts +1 -1
  6. package/lib/model/annotation.js +1 -1
  7. package/lib/model/apply-guardrails-details.d.ts +1 -1
  8. package/lib/model/apply-guardrails-details.js +1 -1
  9. package/lib/model/apply-guardrails-result.d.ts +1 -1
  10. package/lib/model/apply-guardrails-result.js +1 -1
  11. package/lib/model/approximate-location.d.ts +1 -1
  12. package/lib/model/approximate-location.js +1 -1
  13. package/lib/model/assistant-message.d.ts +5 -1
  14. package/lib/model/assistant-message.js +1 -1
  15. package/lib/model/assistant-message.js.map +1 -1
  16. package/lib/model/audio-content.d.ts +1 -1
  17. package/lib/model/audio-content.js +1 -1
  18. package/lib/model/audio-url.d.ts +1 -1
  19. package/lib/model/audio-url.js +1 -1
  20. package/lib/model/base-chat-request.d.ts +1 -1
  21. package/lib/model/base-chat-request.js +5 -1
  22. package/lib/model/base-chat-request.js.map +1 -1
  23. package/lib/model/base-chat-response.d.ts +1 -1
  24. package/lib/model/base-chat-response.js +5 -1
  25. package/lib/model/base-chat-response.js.map +1 -1
  26. package/lib/model/category-score.d.ts +1 -1
  27. package/lib/model/category-score.js +1 -1
  28. package/lib/model/chat-choice.d.ts +1 -1
  29. package/lib/model/chat-choice.js +1 -1
  30. package/lib/model/chat-content.d.ts +1 -1
  31. package/lib/model/chat-content.js +5 -1
  32. package/lib/model/chat-content.js.map +1 -1
  33. package/lib/model/chat-details.d.ts +2 -2
  34. package/lib/model/chat-details.js +1 -1
  35. package/lib/model/chat-result.d.ts +2 -2
  36. package/lib/model/chat-result.js +1 -1
  37. package/lib/model/choice.d.ts +1 -1
  38. package/lib/model/choice.js +1 -1
  39. package/lib/model/citation-options-v2.d.ts +38 -0
  40. package/lib/model/citation-options-v2.js +42 -0
  41. package/lib/model/citation-options-v2.js.map +1 -0
  42. package/lib/model/citation.d.ts +1 -1
  43. package/lib/model/citation.js +1 -1
  44. package/lib/model/cohere-assistant-message-v2.d.ts +43 -0
  45. package/lib/model/cohere-assistant-message-v2.js +83 -0
  46. package/lib/model/cohere-assistant-message-v2.js.map +1 -0
  47. package/lib/model/cohere-chat-bot-message.d.ts +1 -1
  48. package/lib/model/cohere-chat-bot-message.js +1 -1
  49. package/lib/model/cohere-chat-request-v2.d.ts +142 -0
  50. package/lib/model/cohere-chat-request-v2.js +114 -0
  51. package/lib/model/cohere-chat-request-v2.js.map +1 -0
  52. package/lib/model/cohere-chat-request.d.ts +1 -1
  53. package/lib/model/cohere-chat-request.js +1 -1
  54. package/lib/model/cohere-chat-response-v2.d.ts +61 -0
  55. package/lib/model/cohere-chat-response-v2.js +90 -0
  56. package/lib/model/cohere-chat-response-v2.js.map +1 -0
  57. package/lib/model/cohere-chat-response.d.ts +1 -1
  58. package/lib/model/cohere-chat-response.js +1 -1
  59. package/lib/model/cohere-citation-document.d.ts +36 -0
  60. package/lib/model/cohere-citation-document.js +36 -0
  61. package/lib/model/cohere-citation-document.js.map +1 -0
  62. package/lib/model/cohere-citation-source-v2.d.ts +44 -0
  63. package/lib/model/cohere-citation-source-v2.js +74 -0
  64. package/lib/model/cohere-citation-source-v2.js.map +1 -0
  65. package/lib/model/cohere-citation-tool-v2.d.ts +36 -0
  66. package/lib/model/cohere-citation-tool-v2.js +36 -0
  67. package/lib/model/cohere-citation-tool-v2.js.map +1 -0
  68. package/lib/model/cohere-citation-v2.d.ts +63 -0
  69. package/lib/model/cohere-citation-v2.js +79 -0
  70. package/lib/model/cohere-citation-v2.js.map +1 -0
  71. package/lib/model/cohere-content-v2.d.ts +29 -0
  72. package/lib/model/cohere-content-v2.js +87 -0
  73. package/lib/model/cohere-content-v2.js.map +1 -0
  74. package/lib/model/cohere-document-content-v2.d.ts +35 -0
  75. package/lib/model/cohere-document-content-v2.js +61 -0
  76. package/lib/model/cohere-document-content-v2.js.map +1 -0
  77. package/lib/model/cohere-image-content-v2.d.ts +32 -0
  78. package/lib/model/cohere-image-content-v2.js +65 -0
  79. package/lib/model/cohere-image-content-v2.js.map +1 -0
  80. package/lib/model/cohere-image-url-v2.d.ts +46 -0
  81. package/lib/model/cohere-image-url-v2.js +47 -0
  82. package/lib/model/cohere-image-url-v2.js.map +1 -0
  83. package/lib/model/cohere-llm-inference-request.d.ts +1 -1
  84. package/lib/model/cohere-llm-inference-request.js +1 -1
  85. package/lib/model/cohere-llm-inference-response.d.ts +1 -1
  86. package/lib/model/cohere-llm-inference-response.js +1 -1
  87. package/lib/model/cohere-message-v2.d.ts +34 -0
  88. package/lib/model/cohere-message-v2.js +99 -0
  89. package/lib/model/cohere-message-v2.js.map +1 -0
  90. package/lib/model/cohere-message.d.ts +1 -1
  91. package/lib/model/cohere-message.js +1 -1
  92. package/lib/model/cohere-parameter-definition.d.ts +1 -1
  93. package/lib/model/cohere-parameter-definition.js +1 -1
  94. package/lib/model/cohere-response-format.d.ts +1 -1
  95. package/lib/model/cohere-response-format.js +1 -1
  96. package/lib/model/cohere-response-json-format.d.ts +1 -1
  97. package/lib/model/cohere-response-json-format.js +1 -1
  98. package/lib/model/cohere-response-text-format.d.ts +1 -1
  99. package/lib/model/cohere-response-text-format.js +1 -1
  100. package/lib/model/cohere-system-message-v2.d.ts +31 -0
  101. package/lib/model/cohere-system-message-v2.js +59 -0
  102. package/lib/model/cohere-system-message-v2.js.map +1 -0
  103. package/lib/model/cohere-system-message.d.ts +1 -1
  104. package/lib/model/cohere-system-message.js +1 -1
  105. package/lib/model/cohere-text-content-v2.d.ts +35 -0
  106. package/lib/model/cohere-text-content-v2.js +59 -0
  107. package/lib/model/cohere-text-content-v2.js.map +1 -0
  108. package/lib/model/cohere-thinking-content-v2.d.ts +35 -0
  109. package/lib/model/cohere-thinking-content-v2.js +61 -0
  110. package/lib/model/cohere-thinking-content-v2.js.map +1 -0
  111. package/lib/model/cohere-thinking-v2.d.ts +40 -0
  112. package/lib/model/cohere-thinking-v2.js +41 -0
  113. package/lib/model/cohere-thinking-v2.js.map +1 -0
  114. package/lib/model/cohere-tool-call-v2.d.ts +48 -0
  115. package/lib/model/cohere-tool-call-v2.js +45 -0
  116. package/lib/model/cohere-tool-call-v2.js.map +1 -0
  117. package/lib/model/cohere-tool-call.d.ts +1 -1
  118. package/lib/model/cohere-tool-call.js +1 -1
  119. package/lib/model/cohere-tool-message-v2.d.ts +35 -0
  120. package/lib/model/cohere-tool-message-v2.js +59 -0
  121. package/lib/model/cohere-tool-message-v2.js.map +1 -0
  122. package/lib/model/cohere-tool-message.d.ts +1 -1
  123. package/lib/model/cohere-tool-message.js +1 -1
  124. package/lib/model/cohere-tool-result.d.ts +1 -1
  125. package/lib/model/cohere-tool-result.js +1 -1
  126. package/lib/model/cohere-tool-v2.d.ts +37 -0
  127. package/lib/model/cohere-tool-v2.js +64 -0
  128. package/lib/model/cohere-tool-v2.js.map +1 -0
  129. package/lib/model/cohere-tool.d.ts +1 -1
  130. package/lib/model/cohere-tool.js +1 -1
  131. package/lib/model/cohere-user-message-v2.d.ts +31 -0
  132. package/lib/model/cohere-user-message-v2.js +59 -0
  133. package/lib/model/cohere-user-message-v2.js.map +1 -0
  134. package/lib/model/cohere-user-message.d.ts +1 -1
  135. package/lib/model/cohere-user-message.js +1 -1
  136. package/lib/model/completion-tokens-details.d.ts +1 -1
  137. package/lib/model/completion-tokens-details.js +1 -1
  138. package/lib/model/content-moderation-configuration.d.ts +1 -1
  139. package/lib/model/content-moderation-configuration.js +1 -1
  140. package/lib/model/content-moderation-result.d.ts +1 -1
  141. package/lib/model/content-moderation-result.js +1 -1
  142. package/lib/model/dedicated-serving-mode.d.ts +1 -1
  143. package/lib/model/dedicated-serving-mode.js +1 -1
  144. package/lib/model/developer-message.d.ts +1 -1
  145. package/lib/model/developer-message.js +1 -1
  146. package/lib/model/document-content.d.ts +32 -0
  147. package/lib/model/document-content.js +65 -0
  148. package/lib/model/document-content.js.map +1 -0
  149. package/lib/model/document-rank.d.ts +1 -1
  150. package/lib/model/document-rank.js +1 -1
  151. package/lib/model/document-url.d.ts +63 -0
  152. package/lib/model/document-url.js +47 -0
  153. package/lib/model/document-url.js.map +1 -0
  154. package/lib/model/document.d.ts +1 -1
  155. package/lib/model/document.js +1 -1
  156. package/lib/model/embed-text-details.d.ts +17 -1
  157. package/lib/model/embed-text-details.js +10 -1
  158. package/lib/model/embed-text-details.js.map +1 -1
  159. package/lib/model/embed-text-result.d.ts +6 -2
  160. package/lib/model/embed-text-result.js +1 -1
  161. package/lib/model/embed-text-result.js.map +1 -1
  162. package/lib/model/function-call.d.ts +1 -1
  163. package/lib/model/function-call.js +1 -1
  164. package/lib/model/function-definition.d.ts +1 -1
  165. package/lib/model/function-definition.js +1 -1
  166. package/lib/model/function.d.ts +40 -0
  167. package/lib/model/function.js +36 -0
  168. package/lib/model/function.js.map +1 -0
  169. package/lib/model/generate-text-details.d.ts +1 -1
  170. package/lib/model/generate-text-details.js +1 -1
  171. package/lib/model/generate-text-result.d.ts +1 -1
  172. package/lib/model/generate-text-result.js +1 -1
  173. package/lib/model/generated-text.d.ts +1 -1
  174. package/lib/model/generated-text.js +1 -1
  175. package/lib/model/generic-chat-request.d.ts +2 -1
  176. package/lib/model/generic-chat-request.js +2 -1
  177. package/lib/model/generic-chat-request.js.map +1 -1
  178. package/lib/model/generic-chat-response.d.ts +1 -1
  179. package/lib/model/generic-chat-response.js +1 -1
  180. package/lib/model/grounding-chunk.d.ts +1 -1
  181. package/lib/model/grounding-chunk.js +1 -1
  182. package/lib/model/grounding-metadata.d.ts +1 -1
  183. package/lib/model/grounding-metadata.js +1 -1
  184. package/lib/model/grounding-support-segment.d.ts +1 -1
  185. package/lib/model/grounding-support-segment.js +1 -1
  186. package/lib/model/grounding-support.d.ts +1 -1
  187. package/lib/model/grounding-support.js +1 -1
  188. package/lib/model/grounding-web-chunk.d.ts +1 -1
  189. package/lib/model/grounding-web-chunk.js +1 -1
  190. package/lib/model/guardrail-configs.d.ts +1 -1
  191. package/lib/model/guardrail-configs.js +1 -1
  192. package/lib/model/guardrails-input.d.ts +1 -1
  193. package/lib/model/guardrails-input.js +1 -1
  194. package/lib/model/guardrails-results.d.ts +1 -1
  195. package/lib/model/guardrails-results.js +1 -1
  196. package/lib/model/guardrails-text-input.d.ts +1 -1
  197. package/lib/model/guardrails-text-input.js +1 -1
  198. package/lib/model/image-content.d.ts +1 -1
  199. package/lib/model/image-content.js +1 -1
  200. package/lib/model/image-url.d.ts +1 -1
  201. package/lib/model/image-url.js +1 -1
  202. package/lib/model/index.d.ts +51 -1
  203. package/lib/model/index.js +54 -4
  204. package/lib/model/index.js.map +1 -1
  205. package/lib/model/json-object-response-format.d.ts +1 -1
  206. package/lib/model/json-object-response-format.js +1 -1
  207. package/lib/model/json-schema-response-format.d.ts +1 -1
  208. package/lib/model/json-schema-response-format.js +1 -1
  209. package/lib/model/llama-llm-inference-request.d.ts +1 -1
  210. package/lib/model/llama-llm-inference-request.js +1 -1
  211. package/lib/model/llama-llm-inference-response.d.ts +1 -1
  212. package/lib/model/llama-llm-inference-response.js +1 -1
  213. package/lib/model/llm-inference-request.d.ts +1 -1
  214. package/lib/model/llm-inference-request.js +1 -1
  215. package/lib/model/llm-inference-response.d.ts +1 -1
  216. package/lib/model/llm-inference-response.js +1 -1
  217. package/lib/model/log-probability.d.ts +40 -0
  218. package/lib/model/log-probability.js +36 -0
  219. package/lib/model/log-probability.js.map +1 -0
  220. package/lib/model/logprobs.d.ts +1 -1
  221. package/lib/model/logprobs.js +1 -1
  222. package/lib/model/message.d.ts +1 -1
  223. package/lib/model/message.js +1 -1
  224. package/lib/model/on-demand-serving-mode.d.ts +1 -1
  225. package/lib/model/on-demand-serving-mode.js +1 -1
  226. package/lib/model/personally-identifiable-information-configuration.d.ts +1 -1
  227. package/lib/model/personally-identifiable-information-configuration.js +1 -1
  228. package/lib/model/personally-identifiable-information-result.d.ts +1 -1
  229. package/lib/model/personally-identifiable-information-result.js +1 -1
  230. package/lib/model/prediction.d.ts +1 -1
  231. package/lib/model/prediction.js +1 -1
  232. package/lib/model/prompt-injection-configuration.d.ts +1 -1
  233. package/lib/model/prompt-injection-configuration.js +1 -1
  234. package/lib/model/prompt-injection-protection-result.d.ts +1 -1
  235. package/lib/model/prompt-injection-protection-result.js +1 -1
  236. package/lib/model/prompt-tokens-details.d.ts +1 -1
  237. package/lib/model/prompt-tokens-details.js +1 -1
  238. package/lib/model/rerank-text-details.d.ts +5 -1
  239. package/lib/model/rerank-text-details.js +1 -1
  240. package/lib/model/rerank-text-details.js.map +1 -1
  241. package/lib/model/rerank-text-result.d.ts +1 -1
  242. package/lib/model/rerank-text-result.js +1 -1
  243. package/lib/model/response-format.d.ts +1 -1
  244. package/lib/model/response-format.js +1 -1
  245. package/lib/model/response-json-schema.d.ts +1 -1
  246. package/lib/model/response-json-schema.js +1 -1
  247. package/lib/model/search-entry-point.d.ts +1 -1
  248. package/lib/model/search-entry-point.js +1 -1
  249. package/lib/model/search-query.d.ts +1 -1
  250. package/lib/model/search-query.js +1 -1
  251. package/lib/model/serving-mode.d.ts +1 -1
  252. package/lib/model/serving-mode.js +1 -1
  253. package/lib/model/static-content.d.ts +1 -1
  254. package/lib/model/static-content.js +1 -1
  255. package/lib/model/stream-options.d.ts +1 -1
  256. package/lib/model/stream-options.js +1 -1
  257. package/lib/model/summarize-text-details.d.ts +1 -1
  258. package/lib/model/summarize-text-details.js +1 -1
  259. package/lib/model/summarize-text-result.d.ts +1 -1
  260. package/lib/model/summarize-text-result.js +1 -1
  261. package/lib/model/system-message.d.ts +1 -1
  262. package/lib/model/system-message.js +1 -1
  263. package/lib/model/text-content.d.ts +1 -1
  264. package/lib/model/text-content.js +1 -1
  265. package/lib/model/text-response-format.d.ts +1 -1
  266. package/lib/model/text-response-format.js +1 -1
  267. package/lib/model/token-likelihood.d.ts +1 -1
  268. package/lib/model/token-likelihood.js +1 -1
  269. package/lib/model/tool-call.d.ts +1 -1
  270. package/lib/model/tool-call.js +1 -1
  271. package/lib/model/tool-choice-auto.d.ts +1 -1
  272. package/lib/model/tool-choice-auto.js +1 -1
  273. package/lib/model/tool-choice-function.d.ts +1 -1
  274. package/lib/model/tool-choice-function.js +1 -1
  275. package/lib/model/tool-choice-none.d.ts +1 -1
  276. package/lib/model/tool-choice-none.js +1 -1
  277. package/lib/model/tool-choice-required.d.ts +1 -1
  278. package/lib/model/tool-choice-required.js +1 -1
  279. package/lib/model/tool-choice.d.ts +1 -1
  280. package/lib/model/tool-choice.js +1 -1
  281. package/lib/model/tool-definition.d.ts +1 -1
  282. package/lib/model/tool-definition.js +1 -1
  283. package/lib/model/tool-message.d.ts +1 -1
  284. package/lib/model/tool-message.js +1 -1
  285. package/lib/model/url-citation.d.ts +1 -1
  286. package/lib/model/url-citation.js +1 -1
  287. package/lib/model/usage.d.ts +1 -1
  288. package/lib/model/usage.js +1 -1
  289. package/lib/model/user-message.d.ts +1 -1
  290. package/lib/model/user-message.js +1 -1
  291. package/lib/model/video-content.d.ts +1 -1
  292. package/lib/model/video-content.js +1 -1
  293. package/lib/model/video-url.d.ts +1 -1
  294. package/lib/model/video-url.js +1 -1
  295. package/lib/model/web-search-options.d.ts +1 -1
  296. package/lib/model/web-search-options.js +1 -1
  297. package/lib/request/apply-guardrails-request.d.ts +1 -1
  298. package/lib/request/apply-guardrails-request.js +1 -1
  299. package/lib/request/chat-request.d.ts +1 -1
  300. package/lib/request/chat-request.js +1 -1
  301. package/lib/request/embed-text-request.d.ts +1 -1
  302. package/lib/request/embed-text-request.js +1 -1
  303. package/lib/request/generate-text-request.d.ts +1 -1
  304. package/lib/request/generate-text-request.js +1 -1
  305. package/lib/request/index.d.ts +1 -1
  306. package/lib/request/index.js +1 -1
  307. package/lib/request/rerank-text-request.d.ts +1 -1
  308. package/lib/request/rerank-text-request.js +1 -1
  309. package/lib/request/summarize-text-request.d.ts +1 -1
  310. package/lib/request/summarize-text-request.js +1 -1
  311. package/lib/response/apply-guardrails-response.d.ts +1 -1
  312. package/lib/response/apply-guardrails-response.js +1 -1
  313. package/lib/response/chat-response.d.ts +1 -1
  314. package/lib/response/chat-response.js +1 -1
  315. package/lib/response/embed-text-response.d.ts +1 -1
  316. package/lib/response/embed-text-response.js +1 -1
  317. package/lib/response/generate-text-response.d.ts +1 -1
  318. package/lib/response/generate-text-response.js +1 -1
  319. package/lib/response/index.d.ts +1 -1
  320. package/lib/response/index.js +1 -1
  321. package/lib/response/rerank-text-response.d.ts +1 -1
  322. package/lib/response/rerank-text-response.js +1 -1
  323. package/lib/response/summarize-text-response.d.ts +1 -1
  324. package/lib/response/summarize-text-response.js +1 -1
  325. package/package.json +3 -3
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Generative AI Service Inference API
3
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
4
+
5
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
6
+
7
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
8
+
9
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
10
+
11
+ * OpenAPI spec version: 20231130
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OracleSDKGenerator.
15
+ * Do not edit the class manually.
16
+ *
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
+ */
20
+ import * as model from "../model";
21
+ /**
22
+ * A definition of tool (function).
23
+ */
24
+ export interface CohereToolV2 {
25
+ /**
26
+ * The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.
27
+ */
28
+ "type": CohereToolV2.Type;
29
+ "function": model.Function;
30
+ }
31
+ export declare namespace CohereToolV2 {
32
+ enum Type {
33
+ Function = "FUNCTION"
34
+ }
35
+ function getJsonObj(obj: CohereToolV2): object;
36
+ function getDeserializedJsonObj(obj: CohereToolV2): object;
37
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /**
3
+ * Generative AI Service Inference API
4
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
5
+
6
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
7
+
8
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
9
+
10
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
11
+
12
+ * OpenAPI spec version: 20231130
13
+ *
14
+ *
15
+ * NOTE: This class is auto generated by OracleSDKGenerator.
16
+ * Do not edit the class manually.
17
+ *
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
+ */
21
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.CohereToolV2 = void 0;
42
+ const model = __importStar(require("../model"));
43
+ var CohereToolV2;
44
+ (function (CohereToolV2) {
45
+ let Type;
46
+ (function (Type) {
47
+ Type["Function"] = "FUNCTION";
48
+ })(Type = CohereToolV2.Type || (CohereToolV2.Type = {}));
49
+ function getJsonObj(obj) {
50
+ const jsonObj = Object.assign(Object.assign({}, obj), {
51
+ "function": obj.function ? model.Function.getJsonObj(obj.function) : undefined
52
+ });
53
+ return jsonObj;
54
+ }
55
+ CohereToolV2.getJsonObj = getJsonObj;
56
+ function getDeserializedJsonObj(obj) {
57
+ const jsonObj = Object.assign(Object.assign({}, obj), {
58
+ "function": obj.function ? model.Function.getDeserializedJsonObj(obj.function) : undefined
59
+ });
60
+ return jsonObj;
61
+ }
62
+ CohereToolV2.getDeserializedJsonObj = getDeserializedJsonObj;
63
+ })(CohereToolV2 = exports.CohereToolV2 || (exports.CohereToolV2 = {}));
64
+ //# sourceMappingURL=cohere-tool-v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cohere-tool-v2.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/cohere-tool-v2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAclC,IAAiB,YAAY,CAyB5B;AAzBD,WAAiB,YAAY;IAC3B,IAAY,IAEX;IAFD,WAAY,IAAI;QACd,6BAAqB,CAAA;IACvB,CAAC,EAFW,IAAI,GAAJ,iBAAI,KAAJ,iBAAI,QAEf;IAED,SAAgB,UAAU,CAAC,GAAiB;QAC1C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SAC/E,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,uBAAU,aASzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAiB;QACtD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SAC3F,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,mCAAsB,yBASrC,CAAA;AACH,CAAC,EAzBgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAyB5B"}
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generative AI Service Inference API
3
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
4
+
5
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
6
+
7
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
8
+
9
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
10
+
11
+ * OpenAPI spec version: 20231130
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OracleSDKGenerator.
15
+ * Do not edit the class manually.
16
+ *
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
+ */
20
+ import * as model from "../model";
21
+ /**
22
+ * A message that represents a single chat dialog as USER role.
23
+ */
24
+ export interface CohereUserMessageV2 extends model.CohereMessageV2 {
25
+ "role": string;
26
+ }
27
+ export declare namespace CohereUserMessageV2 {
28
+ function getJsonObj(obj: CohereUserMessageV2, isParentJsonObj?: boolean): object;
29
+ const role = "USER";
30
+ function getDeserializedJsonObj(obj: CohereUserMessageV2, isParentJsonObj?: boolean): object;
31
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * Generative AI Service Inference API
4
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
5
+
6
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
7
+
8
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
9
+
10
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
11
+
12
+ * OpenAPI spec version: 20231130
13
+ *
14
+ *
15
+ * NOTE: This class is auto generated by OracleSDKGenerator.
16
+ * Do not edit the class manually.
17
+ *
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
+ */
21
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.CohereUserMessageV2 = void 0;
42
+ const model = __importStar(require("../model"));
43
+ var CohereUserMessageV2;
44
+ (function (CohereUserMessageV2) {
45
+ function getJsonObj(obj, isParentJsonObj) {
46
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.CohereMessageV2.getJsonObj(obj))), {});
47
+ return jsonObj;
48
+ }
49
+ CohereUserMessageV2.getJsonObj = getJsonObj;
50
+ CohereUserMessageV2.role = "USER";
51
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
52
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
53
+ ? obj
54
+ : model.CohereMessageV2.getDeserializedJsonObj(obj))), {});
55
+ return jsonObj;
56
+ }
57
+ CohereUserMessageV2.getDeserializedJsonObj = getDeserializedJsonObj;
58
+ })(CohereUserMessageV2 = exports.CohereUserMessageV2 || (exports.CohereUserMessageV2 = {}));
59
+ //# sourceMappingURL=cohere-user-message-v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cohere-user-message-v2.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/cohere-user-message-v2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAUlC,IAAiB,mBAAmB,CAuBnC;AAvBD,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,GAAwB,EAAE,eAAyB;QAC5E,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAyB,CAAC,GACxF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,8BAAU,aAOzB,CAAA;IACY,wBAAI,GAAG,MAAM,CAAC;IAC3B,SAAgB,sBAAsB,CACpC,GAAwB,EACxB,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAyB,CAAC,GAC5E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,0CAAsB,yBAYrC,CAAA;AACH,CAAC,EAvBgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAuBnC"}
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  /**
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  /**
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Generative AI Service Inference API
3
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
4
+
5
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
6
+
7
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
8
+
9
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
10
+
11
+ * OpenAPI spec version: 20231130
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OracleSDKGenerator.
15
+ * Do not edit the class manually.
16
+ *
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
+ */
20
+ import * as model from "../model";
21
+ /**
22
+ * Represents a single instance of chat document content.
23
+ */
24
+ export interface DocumentContent extends model.ChatContent {
25
+ "documentUrl"?: model.DocumentUrl;
26
+ "type": string;
27
+ }
28
+ export declare namespace DocumentContent {
29
+ function getJsonObj(obj: DocumentContent, isParentJsonObj?: boolean): object;
30
+ const type = "DOCUMENT";
31
+ function getDeserializedJsonObj(obj: DocumentContent, isParentJsonObj?: boolean): object;
32
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /**
3
+ * Generative AI Service Inference API
4
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
5
+
6
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
7
+
8
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
9
+
10
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
11
+
12
+ * OpenAPI spec version: 20231130
13
+ *
14
+ *
15
+ * NOTE: This class is auto generated by OracleSDKGenerator.
16
+ * Do not edit the class manually.
17
+ *
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
+ */
21
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.DocumentContent = void 0;
42
+ const model = __importStar(require("../model"));
43
+ var DocumentContent;
44
+ (function (DocumentContent) {
45
+ function getJsonObj(obj, isParentJsonObj) {
46
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ChatContent.getJsonObj(obj))), {
47
+ "documentUrl": obj.documentUrl ? model.DocumentUrl.getJsonObj(obj.documentUrl) : undefined
48
+ });
49
+ return jsonObj;
50
+ }
51
+ DocumentContent.getJsonObj = getJsonObj;
52
+ DocumentContent.type = "DOCUMENT";
53
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
54
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
55
+ ? obj
56
+ : model.ChatContent.getDeserializedJsonObj(obj))), {
57
+ "documentUrl": obj.documentUrl
58
+ ? model.DocumentUrl.getDeserializedJsonObj(obj.documentUrl)
59
+ : undefined
60
+ });
61
+ return jsonObj;
62
+ }
63
+ DocumentContent.getDeserializedJsonObj = getDeserializedJsonObj;
64
+ })(DocumentContent = exports.DocumentContent || (exports.DocumentContent = {}));
65
+ //# sourceMappingURL=document-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-content.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/document-content.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAYlC,IAAiB,eAAe,CA0B/B;AA1BD,WAAiB,eAAe;IAC9B,SAAgB,UAAU,CAAC,GAAoB,EAAE,eAAyB;QACxE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAqB,CAAC,GAChF;YACD,aAAa,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS;SAC3F,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,0BAAU,aASzB,CAAA;IACY,oBAAI,GAAG,UAAU,CAAC;IAC/B,SAAgB,sBAAsB,CAAC,GAAoB,EAAE,eAAyB;QACpF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,WAAW,CAAC,sBAAsB,CAAC,GAAG,CAAqB,CAAC,GACpE;YACD,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC3D,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,sCAAsB,yBAarC,CAAA;AACH,CAAC,EA1BgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA0B/B"}
@@ -14,7 +14,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
14
14
  * NOTE: This class is auto generated by OracleSDKGenerator.
15
15
  * Do not edit the class manually.
16
16
  *
17
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
18
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
19
  */
20
20
  import * as model from "../model";
@@ -15,7 +15,7 @@ To learn more about the service, see the [Generative AI documentation](https://d
15
15
  * NOTE: This class is auto generated by OracleSDKGenerator.
16
16
  * Do not edit the class manually.
17
17
  *
18
- * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
18
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
19
19
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
20
20
  */
21
21
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Generative AI Service Inference API
3
+ * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
4
+
5
+ Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}.
6
+
7
+ To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}.
8
+
9
+ To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
10
+
11
+ * OpenAPI spec version: 20231130
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OracleSDKGenerator.
15
+ * Do not edit the class manually.
16
+ *
17
+ * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
18
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
19
+ */
20
+ /**
21
+ * The base64 encoded document data or a document uri if it's supported.
22
+ */
23
+ export interface DocumentUrl {
24
+ /**
25
+ * The base64 encoded document data or a document uri if it's supported.
26
+ * <p>
27
+ Example for a pdf document:
28
+ * {@code {
29
+ * \"type\": \"DOCUMENT\",
30
+ * \"documentUrl\": {
31
+ * \"url\": \"data:application/pdf;base64,<base64 encoded document content>\"
32
+ * }
33
+ * }}
34
+ * <p>
35
+ Example with a document uri:
36
+ * {@code {
37
+ * \"type\": \"DOCUMENT\",
38
+ * \"videoUrl\": {
39
+ * \"url\": \"data:application/pdf;uri,<document uri>\"
40
+ * }
41
+ * }}
42
+ *
43
+ */
44
+ "url": string;
45
+ /**
46
+ * The default value is AUTO and only AUTO is supported. This option controls how to convert the base64 encoded document to tokens.
47
+ */
48
+ "detail"?: DocumentUrl.Detail;
49
+ }
50
+ export declare namespace DocumentUrl {
51
+ enum Detail {
52
+ Auto = "AUTO",
53
+ High = "HIGH",
54
+ Low = "LOW",
55
+ /**
56
+ * This value is used if a service returns a value for this enum that is not recognized by this
57
+ * version of the SDK.
58
+ */
59
+ UnknownValue = "UNKNOWN_VALUE"
60
+ }
61
+ function getJsonObj(obj: DocumentUrl): object;
62
+ function getDeserializedJsonObj(obj: DocumentUrl): object;
63
+ }