oci-generativeaiinference 2.123.0 → 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 (99) hide show
  1. package/lib/model/assistant-message.d.ts +4 -0
  2. package/lib/model/assistant-message.js.map +1 -1
  3. package/lib/model/base-chat-request.js +4 -0
  4. package/lib/model/base-chat-request.js.map +1 -1
  5. package/lib/model/base-chat-response.js +4 -0
  6. package/lib/model/base-chat-response.js.map +1 -1
  7. package/lib/model/chat-content.js +4 -0
  8. package/lib/model/chat-content.js.map +1 -1
  9. package/lib/model/chat-details.d.ts +1 -1
  10. package/lib/model/chat-result.d.ts +1 -1
  11. package/lib/model/citation-options-v2.d.ts +38 -0
  12. package/lib/model/citation-options-v2.js +42 -0
  13. package/lib/model/citation-options-v2.js.map +1 -0
  14. package/lib/model/cohere-assistant-message-v2.d.ts +43 -0
  15. package/lib/model/cohere-assistant-message-v2.js +83 -0
  16. package/lib/model/cohere-assistant-message-v2.js.map +1 -0
  17. package/lib/model/cohere-chat-request-v2.d.ts +142 -0
  18. package/lib/model/cohere-chat-request-v2.js +114 -0
  19. package/lib/model/cohere-chat-request-v2.js.map +1 -0
  20. package/lib/model/cohere-chat-response-v2.d.ts +61 -0
  21. package/lib/model/cohere-chat-response-v2.js +90 -0
  22. package/lib/model/cohere-chat-response-v2.js.map +1 -0
  23. package/lib/model/cohere-citation-document.d.ts +36 -0
  24. package/lib/model/cohere-citation-document.js +36 -0
  25. package/lib/model/cohere-citation-document.js.map +1 -0
  26. package/lib/model/cohere-citation-source-v2.d.ts +44 -0
  27. package/lib/model/cohere-citation-source-v2.js +74 -0
  28. package/lib/model/cohere-citation-source-v2.js.map +1 -0
  29. package/lib/model/cohere-citation-tool-v2.d.ts +36 -0
  30. package/lib/model/cohere-citation-tool-v2.js +36 -0
  31. package/lib/model/cohere-citation-tool-v2.js.map +1 -0
  32. package/lib/model/cohere-citation-v2.d.ts +63 -0
  33. package/lib/model/cohere-citation-v2.js +79 -0
  34. package/lib/model/cohere-citation-v2.js.map +1 -0
  35. package/lib/model/cohere-content-v2.d.ts +29 -0
  36. package/lib/model/cohere-content-v2.js +87 -0
  37. package/lib/model/cohere-content-v2.js.map +1 -0
  38. package/lib/model/cohere-document-content-v2.d.ts +35 -0
  39. package/lib/model/cohere-document-content-v2.js +61 -0
  40. package/lib/model/cohere-document-content-v2.js.map +1 -0
  41. package/lib/model/cohere-image-content-v2.d.ts +32 -0
  42. package/lib/model/cohere-image-content-v2.js +65 -0
  43. package/lib/model/cohere-image-content-v2.js.map +1 -0
  44. package/lib/model/cohere-image-url-v2.d.ts +46 -0
  45. package/lib/model/cohere-image-url-v2.js +47 -0
  46. package/lib/model/cohere-image-url-v2.js.map +1 -0
  47. package/lib/model/cohere-message-v2.d.ts +34 -0
  48. package/lib/model/cohere-message-v2.js +99 -0
  49. package/lib/model/cohere-message-v2.js.map +1 -0
  50. package/lib/model/cohere-system-message-v2.d.ts +31 -0
  51. package/lib/model/cohere-system-message-v2.js +59 -0
  52. package/lib/model/cohere-system-message-v2.js.map +1 -0
  53. package/lib/model/cohere-text-content-v2.d.ts +35 -0
  54. package/lib/model/cohere-text-content-v2.js +59 -0
  55. package/lib/model/cohere-text-content-v2.js.map +1 -0
  56. package/lib/model/cohere-thinking-content-v2.d.ts +35 -0
  57. package/lib/model/cohere-thinking-content-v2.js +61 -0
  58. package/lib/model/cohere-thinking-content-v2.js.map +1 -0
  59. package/lib/model/cohere-thinking-v2.d.ts +40 -0
  60. package/lib/model/cohere-thinking-v2.js +41 -0
  61. package/lib/model/cohere-thinking-v2.js.map +1 -0
  62. package/lib/model/cohere-tool-call-v2.d.ts +48 -0
  63. package/lib/model/cohere-tool-call-v2.js +45 -0
  64. package/lib/model/cohere-tool-call-v2.js.map +1 -0
  65. package/lib/model/cohere-tool-message-v2.d.ts +35 -0
  66. package/lib/model/cohere-tool-message-v2.js +59 -0
  67. package/lib/model/cohere-tool-message-v2.js.map +1 -0
  68. package/lib/model/cohere-tool-v2.d.ts +37 -0
  69. package/lib/model/cohere-tool-v2.js +64 -0
  70. package/lib/model/cohere-tool-v2.js.map +1 -0
  71. package/lib/model/cohere-user-message-v2.d.ts +31 -0
  72. package/lib/model/cohere-user-message-v2.js +59 -0
  73. package/lib/model/cohere-user-message-v2.js.map +1 -0
  74. package/lib/model/document-content.d.ts +32 -0
  75. package/lib/model/document-content.js +65 -0
  76. package/lib/model/document-content.js.map +1 -0
  77. package/lib/model/document-url.d.ts +63 -0
  78. package/lib/model/document-url.js +47 -0
  79. package/lib/model/document-url.js.map +1 -0
  80. package/lib/model/embed-text-details.d.ts +16 -0
  81. package/lib/model/embed-text-details.js +9 -0
  82. package/lib/model/embed-text-details.js.map +1 -1
  83. package/lib/model/embed-text-result.d.ts +5 -1
  84. package/lib/model/embed-text-result.js.map +1 -1
  85. package/lib/model/function.d.ts +40 -0
  86. package/lib/model/function.js +36 -0
  87. package/lib/model/function.js.map +1 -0
  88. package/lib/model/generic-chat-request.d.ts +1 -0
  89. package/lib/model/generic-chat-request.js +1 -0
  90. package/lib/model/generic-chat-request.js.map +1 -1
  91. package/lib/model/index.d.ts +50 -0
  92. package/lib/model/index.js +53 -3
  93. package/lib/model/index.js.map +1 -1
  94. package/lib/model/log-probability.d.ts +40 -0
  95. package/lib/model/log-probability.js +36 -0
  96. package/lib/model/log-probability.js.map +1 -0
  97. package/lib/model/rerank-text-details.d.ts +4 -0
  98. package/lib/model/rerank-text-details.js.map +1 -1
  99. package/package.json +3 -3
@@ -42,6 +42,10 @@ export interface AssistantMessage extends model.Message {
42
42
  * List of annotations generated by the model, including inline citations from web search results.
43
43
  */
44
44
  "annotations"?: Array<model.Annotation>;
45
+ /**
46
+ * Internal reasoning trace generated during response computation.
47
+ */
48
+ "reasoningContent"?: string;
45
49
  "role": string;
46
50
  }
47
51
  export declare namespace AssistantMessage {
@@ -1 +1 @@
1
- {"version":3,"file":"assistant-message.js","sourceRoot":"","sources":["../../../../../lib/generativea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AQ,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACrD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACvD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,uCAAsB,yBAkBrC,CAAA;AACH,CAAC,EAxCgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAwChC"}
1
+ {"version":3,"file":"assistant-message.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/assistant-message.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmClC,IAAiB,gBAAgB,CAwChC;AAxCD,WAAiB,gBAAgB;IAC/B,SAAgB,UAAU,CAAC,GAAqB,EAAE,eAAyB;QACzE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAsB,CAAC,GAC7E;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACzC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,2BAAU,aAkBzB,CAAA;IACY,qBAAI,GAAG,WAAW,CAAC;IAChC,SAAgB,sBAAsB,CAAC,GAAqB,EAAE,eAAyB;QACrF,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAsB,CAAC,GACzF;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACrD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACvD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,uCAAsB,yBAkBrC,CAAA;AACH,CAAC,EAxCgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAwChC"}
@@ -47,6 +47,8 @@ var BaseChatRequest;
47
47
  const jsonObj = Object.assign(Object.assign({}, obj), {});
48
48
  if (obj && "apiFormat" in obj && obj.apiFormat) {
49
49
  switch (obj.apiFormat) {
50
+ case "COHEREV2":
51
+ return model.CohereChatRequestV2.getJsonObj(jsonObj, true);
50
52
  case "GENERIC":
51
53
  return model.GenericChatRequest.getJsonObj(jsonObj, true);
52
54
  case "COHERE":
@@ -63,6 +65,8 @@ var BaseChatRequest;
63
65
  const jsonObj = Object.assign(Object.assign({}, obj), {});
64
66
  if (obj && "apiFormat" in obj && obj.apiFormat) {
65
67
  switch (obj.apiFormat) {
68
+ case "COHEREV2":
69
+ return model.CohereChatRequestV2.getDeserializedJsonObj(jsonObj, true);
66
70
  case "GENERIC":
67
71
  return model.GenericChatRequest.getDeserializedJsonObj(jsonObj, true);
68
72
  case "COHERE":
@@ -1 +1 @@
1
- {"version":3,"file":"base-chat-request.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/base-chat-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,eAAe,CA2C/B;AA3CD,WAAiB,eAAe;IAC9B,SAAgB,UAAU,CAAC,GAAoB;QAC7C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,kBAAkB,CAAC,UAAU,CACL,OAAQ,EAC3C,IAAI,CACL,CAAC;gBACJ,KAAK,QAAQ;oBACX,OAAO,KAAK,CAAC,iBAAiB,CAAC,UAAU,CACL,OAAQ,EAC1C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;aACxF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,0BAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAoB;QACzD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CACjB,OAAQ,EAC3C,IAAI,CACL,CAAC;gBACJ,KAAK,QAAQ;oBACX,OAAO,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CACjB,OAAQ,EAC1C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;aACxF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,sCAAsB,yBAoBrC,CAAA;AACH,CAAC,EA3CgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA2C/B"}
1
+ {"version":3,"file":"base-chat-request.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/base-chat-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,eAAe,CAqD/B;AArDD,WAAiB,eAAe;IAC9B,SAAgB,UAAU,CAAC,GAAoB;QAC7C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,UAAU;oBACb,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CACL,OAAQ,EAC5C,IAAI,CACL,CAAC;gBACJ,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,kBAAkB,CAAC,UAAU,CACL,OAAQ,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GenericChatResponse.getJsonObj(jsonObj, true);
52
+ case "COHEREV2":
53
+ return model.CohereChatResponseV2.getJsonObj(jsonObj, true);
52
54
  case "COHERE":
53
55
  return model.CohereChatResponse.getJsonObj(jsonObj, true);
54
56
  default:
@@ -65,6 +67,8 @@ var BaseChatResponse;
65
67
  switch (obj.apiFormat) {
66
68
  case "GENERIC":
67
69
  return model.GenericChatResponse.getDeserializedJsonObj(jsonObj, true);
70
+ case "COHEREV2":
71
+ return model.CohereChatResponseV2.getDeserializedJsonObj(jsonObj, true);
68
72
  case "COHERE":
69
73
  return model.CohereChatResponse.getDeserializedJsonObj(jsonObj, true);
70
74
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"base-chat-response.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/base-chat-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,gBAAgB,CA2ChC;AA3CD,WAAiB,gBAAgB;IAC/B,SAAgB,UAAU,CAAC,GAAqB;QAC9C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CACL,OAAQ,EAC5C,IAAI,CACL,CAAC;gBACJ,KAAK,QAAQ;oBACX,OAAO,KAAK,CAAC,kBAAkB,CAAC,UAAU,CACL,OAAQ,EAC3C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;aACxF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,2BAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAqB;QAC1D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CACjB,OAAQ,EAC5C,IAAI,CACL,CAAC;gBACJ,KAAK,QAAQ;oBACX,OAAO,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CACjB,OAAQ,EAC3C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;aACxF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,uCAAsB,yBAoBrC,CAAA;AACH,CAAC,EA3CgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA2ChC"}
1
+ {"version":3,"file":"base-chat-response.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/base-chat-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,gBAAgB,CAqDhC;AArDD,WAAiB,gBAAgB;IAC/B,SAAgB,UAAU,CAAC,GAAqB;QAC9C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,SAAS;oBACZ,OAAO,KAAK,C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CAAC,EArDgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAqDhC"}
@@ -51,6 +51,8 @@ var ChatContent;
51
51
  return model.VideoContent.getJsonObj(jsonObj, true);
52
52
  case "IMAGE":
53
53
  return model.ImageContent.getJsonObj(jsonObj, true);
54
+ case "DOCUMENT":
55
+ return model.DocumentContent.getJsonObj(jsonObj, true);
54
56
  case "AUDIO":
55
57
  return model.AudioContent.getJsonObj(jsonObj, true);
56
58
  case "TEXT":
@@ -71,6 +73,8 @@ var ChatContent;
71
73
  return model.VideoContent.getDeserializedJsonObj(jsonObj, true);
72
74
  case "IMAGE":
73
75
  return model.ImageContent.getDeserializedJsonObj(jsonObj, true);
76
+ case "DOCUMENT":
77
+ return model.DocumentContent.getDeserializedJsonObj(jsonObj, true);
74
78
  case "AUDIO":
75
79
  return model.AudioContent.getDeserializedJsonObj(jsonObj, true);
76
80
  case "TEXT":
@@ -1 +1 @@
1
- {"version":3,"file":"chat-content.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/chat-content.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,WAAW,CAmD3B;AAnDD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE;YACpC,QAAQ,GAAG,CAAC,IAAI,EAAE;gBAChB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,CAA8B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBACpF,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,CAA8B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBACpF,KAAK,OAAO;oBACV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AC,EAnDgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAmD3B"}
1
+ {"version":3,"file":"chat-content.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/chat-content.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,WAAW,CA0D3B;AA1DD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE;YACpC,QAAQ,GAAG,CAAC,IAAI,EAAE;gBAChB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,CAA8B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBACpF,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,CAA8B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBACpF,KAAK,UAAU;oBACb,OAAO,KAAK,CAAC,eAAe,CAAC,UAAU,CAAiC,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAC1F,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,CAA8B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBACpF,KAAK,MAAM;oBACT,OAAO,KAAK,CAAC,WAAW,CAAC,UAAU,CAA6B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAClF;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;aACnF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,sBAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE;YACpC,QAAQ,GAAG,CAAC,IAAI,EAAE;gBAChB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,sBAAsB,CACjB,OAAQ,EACrC,IAAI,CACL,CAAC;gBACJ,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,sBAAsB,CACjB,OAAQ,EACrC,IAAI,CACL,CAAC;gBACJ,KAAK,UAAU;oBACb,OAAO,KAAK,CAAC,eAAe,CAAC,sBAAsB,CACjB,OAAQ,EACxC,IAAI,CACL,CAAC;gBACJ,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,YAAY,CAAC,sBAAsB,CACjB,OAAQ,EACrC,IAAI,CACL,CAAC;gBACJ,KAAK,MAAM;oBACT,OAAO,KAAK,CAAC,WAAW,CAAC,sBAAsB,CACjB,OAAQ,EACpC,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;aACnF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAnCe,kCAAsB,yBAmCrC,CAAA;AACH,CAAC,EA1DgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA0D3B"}
@@ -27,7 +27,7 @@ export interface ChatDetails {
27
27
  */
28
28
  "compartmentId": string;
29
29
  "servingMode": model.DedicatedServingMode | model.OnDemandServingMode;
30
- "chatRequest": model.GenericChatRequest | model.CohereChatRequest;
30
+ "chatRequest": model.CohereChatRequestV2 | model.GenericChatRequest | model.CohereChatRequest;
31
31
  }
32
32
  export declare namespace ChatDetails {
33
33
  function getJsonObj(obj: ChatDetails): object;
@@ -30,7 +30,7 @@ export interface ChatResult {
30
30
  * The version of the model.
31
31
  */
32
32
  "modelVersion": string;
33
- "chatResponse": model.GenericChatResponse | model.CohereChatResponse;
33
+ "chatResponse": model.GenericChatResponse | model.CohereChatResponseV2 | model.CohereChatResponse;
34
34
  }
35
35
  export declare namespace ChatResult {
36
36
  function getJsonObj(obj: ChatResult): object;
@@ -0,0 +1,38 @@
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
+ * Options for controlling citation generation in RAG flows.
22
+ */
23
+ export interface CitationOptionsV2 {
24
+ /**
25
+ * Dictates the approach taken to generating citations as part of the RAG flow. Defaults to \"accurate\". - \"ACCURATE\": More precise citation generation. - \"FAST\": Faster but may be less precise. - \"OFF\": Disables citation generation. Note: {@code command-r7b-12-2024} and {@code command-a-03-2025} only support \"FAST\" and \"OFF\".
26
+ *
27
+ */
28
+ "mode"?: CitationOptionsV2.Mode;
29
+ }
30
+ export declare namespace CitationOptionsV2 {
31
+ enum Mode {
32
+ Fast = "FAST",
33
+ Accurate = "ACCURATE",
34
+ Off = "OFF"
35
+ }
36
+ function getJsonObj(obj: CitationOptionsV2): object;
37
+ function getDeserializedJsonObj(obj: CitationOptionsV2): object;
38
+ }
@@ -0,0 +1,42 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.CitationOptionsV2 = void 0;
23
+ var CitationOptionsV2;
24
+ (function (CitationOptionsV2) {
25
+ let Mode;
26
+ (function (Mode) {
27
+ Mode["Fast"] = "FAST";
28
+ Mode["Accurate"] = "ACCURATE";
29
+ Mode["Off"] = "OFF";
30
+ })(Mode = CitationOptionsV2.Mode || (CitationOptionsV2.Mode = {}));
31
+ function getJsonObj(obj) {
32
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
33
+ return jsonObj;
34
+ }
35
+ CitationOptionsV2.getJsonObj = getJsonObj;
36
+ function getDeserializedJsonObj(obj) {
37
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
38
+ return jsonObj;
39
+ }
40
+ CitationOptionsV2.getDeserializedJsonObj = getDeserializedJsonObj;
41
+ })(CitationOptionsV2 = exports.CitationOptionsV2 || (exports.CitationOptionsV2 = {}));
42
+ //# sourceMappingURL=citation-options-v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"citation-options-v2.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/citation-options-v2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAgBH,IAAiB,iBAAiB,CAiBjC;AAjBD,WAAiB,iBAAiB;IAChC,IAAY,IAIX;IAJD,WAAY,IAAI;QACd,qBAAa,CAAA;QACb,6BAAqB,CAAA;QACrB,mBAAW,CAAA;IACb,CAAC,EAJW,IAAI,GAAJ,sBAAI,KAAJ,sBAAI,QAIf;IAED,SAAgB,UAAU,CAAC,GAAsB;QAC/C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,4BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAsB;QAC3D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,wCAAsB,yBAIrC,CAAA;AACH,CAAC,EAjBgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAiBjC"}
@@ -0,0 +1,43 @@
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 CHATBOT role.
23
+ */
24
+ export interface CohereAssistantMessageV2 extends model.CohereMessageV2 {
25
+ /**
26
+ * A chain-of-thought style reflection and plan that the model generates when working with Tools.
27
+ */
28
+ "toolPlan"?: string;
29
+ /**
30
+ * A list of tool calls generated by the model.
31
+ */
32
+ "toolCalls"?: Array<model.CohereToolCallV2>;
33
+ /**
34
+ * Cohere citations
35
+ */
36
+ "citations"?: Array<model.CohereCitationV2>;
37
+ "role": string;
38
+ }
39
+ export declare namespace CohereAssistantMessageV2 {
40
+ function getJsonObj(obj: CohereAssistantMessageV2, isParentJsonObj?: boolean): object;
41
+ const role = "ASSISTANT";
42
+ function getDeserializedJsonObj(obj: CohereAssistantMessageV2, isParentJsonObj?: boolean): object;
43
+ }
@@ -0,0 +1,83 @@
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.CohereAssistantMessageV2 = void 0;
42
+ const model = __importStar(require("../model"));
43
+ var CohereAssistantMessageV2;
44
+ (function (CohereAssistantMessageV2) {
45
+ function getJsonObj(obj, isParentJsonObj) {
46
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
47
+ ? obj
48
+ : model.CohereMessageV2.getJsonObj(obj))), {
49
+ "toolCalls": obj.toolCalls
50
+ ? obj.toolCalls.map(item => {
51
+ return model.CohereToolCallV2.getJsonObj(item);
52
+ })
53
+ : undefined,
54
+ "citations": obj.citations
55
+ ? obj.citations.map(item => {
56
+ return model.CohereCitationV2.getJsonObj(item);
57
+ })
58
+ : undefined
59
+ });
60
+ return jsonObj;
61
+ }
62
+ CohereAssistantMessageV2.getJsonObj = getJsonObj;
63
+ CohereAssistantMessageV2.role = "ASSISTANT";
64
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
65
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
66
+ ? obj
67
+ : model.CohereMessageV2.getDeserializedJsonObj(obj))), {
68
+ "toolCalls": obj.toolCalls
69
+ ? obj.toolCalls.map(item => {
70
+ return model.CohereToolCallV2.getDeserializedJsonObj(item);
71
+ })
72
+ : undefined,
73
+ "citations": obj.citations
74
+ ? obj.citations.map(item => {
75
+ return model.CohereCitationV2.getDeserializedJsonObj(item);
76
+ })
77
+ : undefined
78
+ });
79
+ return jsonObj;
80
+ }
81
+ CohereAssistantMessageV2.getDeserializedJsonObj = getDeserializedJsonObj;
82
+ })(CohereAssistantMessageV2 = exports.CohereAssistantMessageV2 || (exports.CohereAssistantMessageV2 = {}));
83
+ //# sourceMappingURL=cohere-assistant-message-v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cohere-assistant-message-v2.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/cohere-assistant-message-v2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuBlC,IAAiB,wBAAwB,CA+CxC;AA/CD,WAAiB,wBAAwB;IACvC,SAAgB,UAAU,CAAC,GAA6B,EAAE,eAAyB;QACjF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAA8B,CAAC,GACrE;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACjD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACjD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,mCAAU,aAoBzB,CAAA;IACY,6BAAI,GAAG,WAAW,CAAC;IAChC,SAAgB,sBAAsB,CACpC,GAA6B,EAC7B,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAA8B,CAAC,GACjF;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC7D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC7D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAvBe,+CAAsB,yBAuBrC,CAAA;AACH,CAAC,EA/CgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QA+CxC"}
@@ -0,0 +1,142 @@
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
+ * Details for the chat request for Cohere models.
23
+ */
24
+ export interface CohereChatRequestV2 extends model.BaseChatRequest {
25
+ /**
26
+ * A list of chat messages in chronological order, representing a conversation between the user and the model.
27
+ */
28
+ "messages": Array<model.CohereMessageV2>;
29
+ /**
30
+ * A list of relevant documents that the model can refer to for generating grounded responses to the user's requests.
31
+ * Some example keys that you can add to the dictionary are \"text\", \"author\", and \"date\". Keep the total word count of the strings in the dictionary to 300 words or less.
32
+ *
33
+ */
34
+ "documents"?: Array<any>;
35
+ "citationOptions"?: model.CitationOptionsV2;
36
+ /**
37
+ * Used to control whether or not the model will be forced to use a tool when answering. When REQUIRED is specified, the model will be forced to use at least one of the user-defined tools, and the tools parameter must be passed in the request. When NONE is specified, the model will be forced not to use one of the specified tools, and give a direct response. If tool_choice isn\u2019t specified, then the model is free to choose whether to use the specified tools or not. Note:This parameter is only compatible with models Command-r7b and newer.
38
+ */
39
+ "toolsChoice"?: CohereChatRequestV2.ToolsChoice;
40
+ /**
41
+ * A list of available tools (functions) that the model may suggest invoking before producing a text response.
42
+ */
43
+ "tools"?: Array<model.CohereToolV2>;
44
+ /**
45
+ * When set to true, tool calls in the Assistant message will be forced to follow the tool definition strictly. Note:The first few requests with a new set of tools will take longer to process.
46
+ */
47
+ "isStrictToolsEnabled"?: boolean;
48
+ /**
49
+ * The log probabilities of the generated tokens will be included in the response.
50
+ */
51
+ "isLogProbsEnabled"?: boolean;
52
+ "thinking"?: model.CohereThinkingV2;
53
+ "responseFormat"?: model.CohereResponseTextFormat | model.CohereResponseJsonFormat;
54
+ /**
55
+ * When set to true, the response contains only a list of generated search queries without the search results and the model will not respond to the user's message.
56
+ *
57
+ */
58
+ "isSearchQueriesOnly"?: boolean;
59
+ "streamOptions"?: model.StreamOptions;
60
+ /**
61
+ * Whether to stream the partial progress of the model's response. When set to true, as tokens become available, they are sent as data-only server-sent events.
62
+ */
63
+ "isStream"?: boolean;
64
+ /**
65
+ * The maximum number of output tokens that the model will generate for the response. The token count of your prompt plus maxTokens must not exceed the model's context length. For on-demand inferencing, the response length is capped at 4,000 tokens for each run.
66
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
67
+ */
68
+ "maxTokens"?: number;
69
+ /**
70
+ * A number that sets the randomness of the generated output. A lower temperature means less random generations.
71
+ * Use lower numbers for tasks such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
72
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
73
+ */
74
+ "temperature"?: number;
75
+ /**
76
+ * A sampling method in which the model chooses the next token randomly from the top k most likely tokens. A higher value for k generates more random output, which makes the output text sound more natural. The default value for k is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500.
77
+ * <p>
78
+ If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20 but only the probabilities of the top 10 add up to the value of p, then only the top 10 tokens are chosen.
79
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
80
+ */
81
+ "topK"?: number;
82
+ /**
83
+ * If set to a probability 0.0 < p < 1.0, it ensures that only the most likely tokens, with total probability mass of p, are considered for generation at each step.
84
+ * <p>
85
+ To eliminate tokens with low likelihood, assign p a minimum percentage for the next token's likelihood. For example, when p is set to 0.75, the model eliminates the bottom 25 percent for the next token. Set to 1.0 to consider all tokens and set to 0 to disable. If both k and p are enabled, p acts after k.
86
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
87
+ */
88
+ "topP"?: number;
89
+ /**
90
+ * To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable.
91
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
92
+ */
93
+ "frequencyPenalty"?: number;
94
+ /**
95
+ * To reduce repetitiveness of generated tokens, this number penalizes new tokens based on whether they've appeared in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens.
96
+ * <p>
97
+ Similar to frequency penalty, a penalty is applied to previously present tokens, except that this penalty is applied equally to all tokens that have already appeared, regardless of how many times they've appeared. Set to 0 to disable.
98
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
99
+ */
100
+ "presencePenalty"?: number;
101
+ /**
102
+ * If specified, the backend will make a best effort to sample tokens deterministically, so that repeated requests with the same seed and parameters yield the same result. However, determinism cannot be fully guaranteed.
103
+ * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
104
+ */
105
+ "seed"?: number;
106
+ /**
107
+ * Stop the model generation when it reaches a stop sequence defined in this parameter.
108
+ */
109
+ "stopSequences"?: Array<string>;
110
+ /**
111
+ * The priority of the request (lower means earlier handling; default 0 highest priority). Higher priority requests are handled first, and dropped last when the system is under load. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
112
+ */
113
+ "priority"?: number;
114
+ /**
115
+ * When enabled, the user\u2019s {@code message} will be sent to the model without any preprocessing.
116
+ */
117
+ "isRawPrompting"?: boolean;
118
+ /**
119
+ * Safety mode: Adds a safety instruction for the model to use when generating responses.
120
+ * Contextual: (Default) Puts fewer constraints on the output. It maintains core protections by aiming to reject harmful or illegal suggestions, but it allows profanity and some toxic content, sexually explicit and violent content, and content that contains medical, financial, or legal information. Contextual mode is suited for entertainment, creative, or academic use.
121
+ * Strict: Aims to avoid sensitive topics, such as violent or sexual acts and profanity. This mode aims to provide a safer experience by prohibiting responses or recommendations that it finds inappropriate. Strict mode is suited for corporate use, such as for corporate communications and customer service.
122
+ * Off: No safety mode is applied.
123
+ * Note: This parameter is only compatible with models cohere.command-r-08-2024, cohere.command-r-plus-08-2024 and Cohere models released after these models. See [release dates](https://docs.oracle.com/iaas/Content/generative-ai/deprecating.htm).
124
+ *
125
+ */
126
+ "safetyMode"?: CohereChatRequestV2.SafetyMode;
127
+ "apiFormat": string;
128
+ }
129
+ export declare namespace CohereChatRequestV2 {
130
+ enum ToolsChoice {
131
+ Required = "REQUIRED",
132
+ None = "NONE"
133
+ }
134
+ enum SafetyMode {
135
+ Contextual = "CONTEXTUAL",
136
+ Strict = "STRICT",
137
+ Off = "OFF"
138
+ }
139
+ function getJsonObj(obj: CohereChatRequestV2, isParentJsonObj?: boolean): object;
140
+ const apiFormat = "COHEREV2";
141
+ function getDeserializedJsonObj(obj: CohereChatRequestV2, isParentJsonObj?: boolean): object;
142
+ }
@@ -0,0 +1,114 @@
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.CohereChatRequestV2 = void 0;
42
+ const model = __importStar(require("../model"));
43
+ var CohereChatRequestV2;
44
+ (function (CohereChatRequestV2) {
45
+ let ToolsChoice;
46
+ (function (ToolsChoice) {
47
+ ToolsChoice["Required"] = "REQUIRED";
48
+ ToolsChoice["None"] = "NONE";
49
+ })(ToolsChoice = CohereChatRequestV2.ToolsChoice || (CohereChatRequestV2.ToolsChoice = {}));
50
+ let SafetyMode;
51
+ (function (SafetyMode) {
52
+ SafetyMode["Contextual"] = "CONTEXTUAL";
53
+ SafetyMode["Strict"] = "STRICT";
54
+ SafetyMode["Off"] = "OFF";
55
+ })(SafetyMode = CohereChatRequestV2.SafetyMode || (CohereChatRequestV2.SafetyMode = {}));
56
+ function getJsonObj(obj, isParentJsonObj) {
57
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.BaseChatRequest.getJsonObj(obj))), {
58
+ "messages": obj.messages
59
+ ? obj.messages.map(item => {
60
+ return model.CohereMessageV2.getJsonObj(item);
61
+ })
62
+ : undefined,
63
+ "citationOptions": obj.citationOptions
64
+ ? model.CitationOptionsV2.getJsonObj(obj.citationOptions)
65
+ : undefined,
66
+ "tools": obj.tools
67
+ ? obj.tools.map(item => {
68
+ return model.CohereToolV2.getJsonObj(item);
69
+ })
70
+ : undefined,
71
+ "thinking": obj.thinking ? model.CohereThinkingV2.getJsonObj(obj.thinking) : undefined,
72
+ "responseFormat": obj.responseFormat
73
+ ? model.CohereResponseFormat.getJsonObj(obj.responseFormat)
74
+ : undefined,
75
+ "streamOptions": obj.streamOptions
76
+ ? model.StreamOptions.getJsonObj(obj.streamOptions)
77
+ : undefined
78
+ });
79
+ return jsonObj;
80
+ }
81
+ CohereChatRequestV2.getJsonObj = getJsonObj;
82
+ CohereChatRequestV2.apiFormat = "COHEREV2";
83
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
84
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
85
+ ? obj
86
+ : model.BaseChatRequest.getDeserializedJsonObj(obj))), {
87
+ "messages": obj.messages
88
+ ? obj.messages.map(item => {
89
+ return model.CohereMessageV2.getDeserializedJsonObj(item);
90
+ })
91
+ : undefined,
92
+ "citationOptions": obj.citationOptions
93
+ ? model.CitationOptionsV2.getDeserializedJsonObj(obj.citationOptions)
94
+ : undefined,
95
+ "tools": obj.tools
96
+ ? obj.tools.map(item => {
97
+ return model.CohereToolV2.getDeserializedJsonObj(item);
98
+ })
99
+ : undefined,
100
+ "thinking": obj.thinking
101
+ ? model.CohereThinkingV2.getDeserializedJsonObj(obj.thinking)
102
+ : undefined,
103
+ "responseFormat": obj.responseFormat
104
+ ? model.CohereResponseFormat.getDeserializedJsonObj(obj.responseFormat)
105
+ : undefined,
106
+ "streamOptions": obj.streamOptions
107
+ ? model.StreamOptions.getDeserializedJsonObj(obj.streamOptions)
108
+ : undefined
109
+ });
110
+ return jsonObj;
111
+ }
112
+ CohereChatRequestV2.getDeserializedJsonObj = getDeserializedJsonObj;
113
+ })(CohereChatRequestV2 = exports.CohereChatRequestV2 || (exports.CohereChatRequestV2 = {}));
114
+ //# sourceMappingURL=cohere-chat-request-v2.js.map