@celljs/ai-core 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/cell.yml +0 -0
  4. package/lib/common/chat/index.d.ts +5 -0
  5. package/lib/common/chat/index.d.ts.map +1 -0
  6. package/lib/common/chat/index.js +21 -0
  7. package/lib/common/chat/index.js.map +1 -0
  8. package/lib/common/chat/message/abstract-message.d.ts +10 -0
  9. package/lib/common/chat/message/abstract-message.d.ts.map +1 -0
  10. package/lib/common/chat/message/abstract-message.js +15 -0
  11. package/lib/common/chat/message/abstract-message.js.map +1 -0
  12. package/lib/common/chat/message/assistant-message.d.ts +9 -0
  13. package/lib/common/chat/message/assistant-message.d.ts.map +1 -0
  14. package/lib/common/chat/message/assistant-message.js +15 -0
  15. package/lib/common/chat/message/assistant-message.js.map +1 -0
  16. package/lib/common/chat/message/function-message.d.ts +9 -0
  17. package/lib/common/chat/message/function-message.d.ts.map +1 -0
  18. package/lib/common/chat/message/function-message.js +15 -0
  19. package/lib/common/chat/message/function-message.js.map +1 -0
  20. package/lib/common/chat/message/index.d.ts +7 -0
  21. package/lib/common/chat/message/index.d.ts.map +1 -0
  22. package/lib/common/chat/message/index.js +23 -0
  23. package/lib/common/chat/message/index.js.map +1 -0
  24. package/lib/common/chat/message/message-protocol.d.ts +41 -0
  25. package/lib/common/chat/message/message-protocol.d.ts.map +1 -0
  26. package/lib/common/chat/message/message-protocol.js +22 -0
  27. package/lib/common/chat/message/message-protocol.js.map +1 -0
  28. package/lib/common/chat/message/system-message.d.ts +9 -0
  29. package/lib/common/chat/message/system-message.d.ts.map +1 -0
  30. package/lib/common/chat/message/system-message.js +15 -0
  31. package/lib/common/chat/message/system-message.js.map +1 -0
  32. package/lib/common/chat/message/user-message.d.ts +9 -0
  33. package/lib/common/chat/message/user-message.d.ts.map +1 -0
  34. package/lib/common/chat/message/user-message.js +15 -0
  35. package/lib/common/chat/message/user-message.js.map +1 -0
  36. package/lib/common/chat/metadata/index.d.ts +2 -0
  37. package/lib/common/chat/metadata/index.d.ts.map +1 -0
  38. package/lib/common/chat/metadata/index.js +18 -0
  39. package/lib/common/chat/metadata/index.js.map +1 -0
  40. package/lib/common/chat/metadata/metadata-protocol.d.ts +108 -0
  41. package/lib/common/chat/metadata/metadata-protocol.d.ts.map +1 -0
  42. package/lib/common/chat/metadata/metadata-protocol.js +41 -0
  43. package/lib/common/chat/metadata/metadata-protocol.js.map +1 -0
  44. package/lib/common/chat/model/chat-protocol.d.ts +15 -0
  45. package/lib/common/chat/model/chat-protocol.d.ts.map +1 -0
  46. package/lib/common/chat/model/chat-protocol.js +3 -0
  47. package/lib/common/chat/model/chat-protocol.js.map +1 -0
  48. package/lib/common/chat/model/index.d.ts +2 -0
  49. package/lib/common/chat/model/index.d.ts.map +1 -0
  50. package/lib/common/chat/model/index.js +18 -0
  51. package/lib/common/chat/model/index.js.map +1 -0
  52. package/lib/common/chat/prompt/index.d.ts +3 -0
  53. package/lib/common/chat/prompt/index.d.ts.map +1 -0
  54. package/lib/common/chat/prompt/index.js +19 -0
  55. package/lib/common/chat/prompt/index.js.map +1 -0
  56. package/lib/common/chat/prompt/prompt-protocol.d.ts +29 -0
  57. package/lib/common/chat/prompt/prompt-protocol.d.ts.map +1 -0
  58. package/lib/common/chat/prompt/prompt-protocol.js +3 -0
  59. package/lib/common/chat/prompt/prompt-protocol.js.map +1 -0
  60. package/lib/common/chat/prompt/prompt.d.ts +14 -0
  61. package/lib/common/chat/prompt/prompt.d.ts.map +1 -0
  62. package/lib/common/chat/prompt/prompt.js +56 -0
  63. package/lib/common/chat/prompt/prompt.js.map +1 -0
  64. package/lib/common/index.d.ts +4 -0
  65. package/lib/common/index.d.ts.map +1 -0
  66. package/lib/common/index.js +20 -0
  67. package/lib/common/index.js.map +1 -0
  68. package/lib/common/model/function/function-protocol.d.ts +47 -0
  69. package/lib/common/model/function/function-protocol.d.ts.map +1 -0
  70. package/lib/common/model/function/function-protocol.js +3 -0
  71. package/lib/common/model/function/function-protocol.js.map +1 -0
  72. package/lib/common/model/function/index.d.ts +2 -0
  73. package/lib/common/model/function/index.d.ts.map +1 -0
  74. package/lib/common/model/function/index.js +18 -0
  75. package/lib/common/model/function/index.js.map +1 -0
  76. package/lib/common/model/index.d.ts +2 -0
  77. package/lib/common/model/index.d.ts.map +1 -0
  78. package/lib/common/model/index.js +18 -0
  79. package/lib/common/model/index.js.map +1 -0
  80. package/lib/common/model/model-protocol.d.ts +160 -0
  81. package/lib/common/model/model-protocol.d.ts.map +1 -0
  82. package/lib/common/model/model-protocol.js +12 -0
  83. package/lib/common/model/model-protocol.js.map +1 -0
  84. package/lib/common/module.d.ts +4 -0
  85. package/lib/common/module.d.ts.map +1 -0
  86. package/lib/common/module.js +6 -0
  87. package/lib/common/module.js.map +1 -0
  88. package/lib/common/utils/index.d.ts +2 -0
  89. package/lib/common/utils/index.d.ts.map +1 -0
  90. package/lib/common/utils/index.js +18 -0
  91. package/lib/common/utils/index.js.map +1 -0
  92. package/lib/common/utils/prompt-util.d.ts +5 -0
  93. package/lib/common/utils/prompt-util.d.ts.map +1 -0
  94. package/lib/common/utils/prompt-util.js +11 -0
  95. package/lib/common/utils/prompt-util.js.map +1 -0
  96. package/lib/package.spec.d.ts +1 -0
  97. package/lib/package.spec.d.ts.map +1 -0
  98. package/lib/package.spec.js +4 -0
  99. package/lib/package.spec.js.map +1 -0
  100. package/package.json +43 -0
  101. package/src/common/chat/index.ts +4 -0
  102. package/src/common/chat/message/abstract-message.ts +13 -0
  103. package/src/common/chat/message/assistant-message.ts +12 -0
  104. package/src/common/chat/message/function-message.ts +12 -0
  105. package/src/common/chat/message/index.ts +6 -0
  106. package/src/common/chat/message/message-protocol.ts +49 -0
  107. package/src/common/chat/message/system-message.ts +12 -0
  108. package/src/common/chat/message/user-message.ts +12 -0
  109. package/src/common/chat/metadata/index.ts +1 -0
  110. package/src/common/chat/metadata/metadata-protocol.ts +154 -0
  111. package/src/common/chat/model/chat-protocol.ts +22 -0
  112. package/src/common/chat/model/index.ts +1 -0
  113. package/src/common/chat/prompt/index.ts +2 -0
  114. package/src/common/chat/prompt/prompt-protocol.ts +44 -0
  115. package/src/common/chat/prompt/prompt.ts +57 -0
  116. package/src/common/index.ts +3 -0
  117. package/src/common/model/function/function-protocol.ts +58 -0
  118. package/src/common/model/function/index.ts +1 -0
  119. package/src/common/model/index.ts +2 -0
  120. package/src/common/model/model-protocol.ts +184 -0
  121. package/src/common/module.ts +4 -0
  122. package/src/common/utils/index.ts +1 -0
  123. package/src/common/utils/prompt-util.ts +7 -0
  124. package/src/package.spec.ts +4 -0
@@ -0,0 +1,7 @@
1
+ import { ChatOptions, Message, Prompt, PromptImpl } from '../chat';
2
+
3
+ export abstract class PromptUtil {
4
+ public static create(messages: Message[] | Message | string, options: ChatOptions = {}): Prompt {
5
+ return new PromptImpl(messages, options);
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ describe('ai-core package', () => {
2
+
3
+ it('support ai-core coverage statistics', () => {});
4
+ });