@dxos/assistant 0.8.4-main.c1de068 → 0.8.4-main.fd6878d

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 (129) hide show
  1. package/dist/lib/browser/chunk-6WRGDEMH.mjs +89 -0
  2. package/dist/lib/browser/chunk-6WRGDEMH.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-NZGGCEF3.mjs +341 -0
  4. package/dist/lib/browser/chunk-NZGGCEF3.mjs.map +7 -0
  5. package/dist/lib/browser/extraction/index.mjs +269 -0
  6. package/dist/lib/browser/extraction/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +169 -1646
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs +13 -0
  11. package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs.map +7 -0
  12. package/dist/lib/node-esm/chunk-3UU5V4FS.mjs +91 -0
  13. package/dist/lib/node-esm/chunk-3UU5V4FS.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-XOOPGSGW.mjs +343 -0
  15. package/dist/lib/node-esm/chunk-XOOPGSGW.mjs.map +7 -0
  16. package/dist/lib/node-esm/extraction/index.mjs +270 -0
  17. package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
  18. package/dist/lib/node-esm/index.mjs +168 -1646
  19. package/dist/lib/node-esm/index.mjs.map +4 -4
  20. package/dist/lib/node-esm/meta.json +1 -1
  21. package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs +14 -0
  22. package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs.map +7 -0
  23. package/dist/types/src/conversation/context.d.ts +90 -0
  24. package/dist/types/src/conversation/context.d.ts.map +1 -0
  25. package/dist/types/src/conversation/conversation.d.ts +25 -13
  26. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  27. package/dist/types/src/conversation/index.d.ts +1 -0
  28. package/dist/types/src/conversation/index.d.ts.map +1 -1
  29. package/dist/types/src/errors.d.ts +5 -4
  30. package/dist/types/src/errors.d.ts.map +1 -1
  31. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
  32. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +25 -21
  33. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  34. package/dist/types/src/extraction/extraction.d.ts +10 -6
  35. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  36. package/dist/types/src/functions/services.d.ts +4 -3
  37. package/dist/types/src/functions/services.d.ts.map +1 -1
  38. package/dist/types/src/index.d.ts +1 -3
  39. package/dist/types/src/index.d.ts.map +1 -1
  40. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  41. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  42. package/dist/types/src/session/format.d.ts +168 -0
  43. package/dist/types/src/session/format.d.ts.map +1 -0
  44. package/dist/types/src/session/format.test.d.ts +2 -0
  45. package/dist/types/src/session/format.test.d.ts.map +1 -0
  46. package/dist/types/src/session/index.d.ts +1 -0
  47. package/dist/types/src/session/index.d.ts.map +1 -1
  48. package/dist/types/src/session/session.d.ts +67 -160
  49. package/dist/types/src/session/session.d.ts.map +1 -1
  50. package/dist/types/src/session/version-pin.d.ts +2 -2
  51. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  52. package/dist/types/src/templates/index.d.ts +1 -1
  53. package/dist/types/src/templates/system.d.ts +22 -0
  54. package/dist/types/src/templates/system.d.ts.map +1 -0
  55. package/dist/types/src/types.d.ts +3 -0
  56. package/dist/types/src/types.d.ts.map +1 -1
  57. package/dist/types/tsconfig.tsbuildinfo +1 -1
  58. package/package.json +43 -27
  59. package/src/{context/binder.ts → conversation/context.ts} +48 -18
  60. package/src/conversation/conversation.ts +63 -34
  61. package/src/conversation/index.ts +1 -0
  62. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +1 -0
  63. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +7 -6
  64. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +4 -3
  65. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +2 -2
  66. package/src/extraction/quotes.test.ts +1 -1
  67. package/src/extraction/quotes.ts +1 -1
  68. package/src/functions/services.ts +43 -68
  69. package/src/index.ts +1 -3
  70. package/src/session/artifact-diff.ts +37 -0
  71. package/src/session/format.test.ts +60 -0
  72. package/src/session/format.ts +139 -0
  73. package/src/session/index.ts +1 -0
  74. package/src/session/session.test.ts +6 -11
  75. package/src/session/session.ts +172 -229
  76. package/src/session/version-pin.ts +4 -4
  77. package/src/summarization/summarization.test.ts +11 -22
  78. package/src/templates/format.tpl +55 -0
  79. package/src/templates/index.ts +1 -1
  80. package/src/templates/system.tpl +47 -0
  81. package/src/templates/system.ts +32 -0
  82. package/src/types.ts +10 -5
  83. package/src/typings.d.ts +5 -0
  84. package/dist/types/bin/chat.d.ts +0 -2
  85. package/dist/types/bin/chat.d.ts.map +0 -1
  86. package/dist/types/src/context/binder.d.ts +0 -34
  87. package/dist/types/src/context/binder.d.ts.map +0 -1
  88. package/dist/types/src/context/binding.d.ts +0 -56
  89. package/dist/types/src/context/binding.d.ts.map +0 -1
  90. package/dist/types/src/context/index.d.ts +0 -3
  91. package/dist/types/src/context/index.d.ts.map +0 -1
  92. package/dist/types/src/research/exa.d.ts +0 -12
  93. package/dist/types/src/research/exa.d.ts.map +0 -1
  94. package/dist/types/src/research/graph.d.ts +0 -51
  95. package/dist/types/src/research/graph.d.ts.map +0 -1
  96. package/dist/types/src/research/graph.test.d.ts +0 -2
  97. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  98. package/dist/types/src/research/index.d.ts +0 -4
  99. package/dist/types/src/research/index.d.ts.map +0 -1
  100. package/dist/types/src/research/research.d.ts +0 -10
  101. package/dist/types/src/research/research.d.ts.map +0 -1
  102. package/dist/types/src/research/research.test.d.ts +0 -2
  103. package/dist/types/src/research/research.test.d.ts.map +0 -1
  104. package/dist/types/src/templates/prompt.d.ts +0 -30
  105. package/dist/types/src/templates/prompt.d.ts.map +0 -1
  106. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  107. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  108. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  109. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  110. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  111. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  112. package/dist/types/src/testing/index.d.ts +0 -3
  113. package/dist/types/src/testing/index.d.ts.map +0 -1
  114. package/src/context/binding.ts +0 -32
  115. package/src/context/index.ts +0 -6
  116. package/src/research/exa.ts +0 -97
  117. package/src/research/graph.test.ts +0 -64
  118. package/src/research/graph.ts +0 -369
  119. package/src/research/index.ts +0 -7
  120. package/src/research/instructions-research.tpl +0 -98
  121. package/src/research/research.test.ts +0 -190
  122. package/src/research/research.ts +0 -87
  123. package/src/templates/assistant.tpl +0 -111
  124. package/src/templates/prompt.ts +0 -45
  125. package/src/testing/exa-search-1748337321991.ts +0 -131
  126. package/src/testing/exa-search-1748337331526.ts +0 -144
  127. package/src/testing/exa-search-1748337344119.ts +0 -133
  128. package/src/testing/index.ts +0 -11
  129. package/src/typedefs.d.ts +0 -8
@@ -1 +1 @@
1
- {"inputs":{"src/context/binding.ts":{"bytes":3145,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"src/context/binder.ts":{"bytes":10270,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/context/binding.ts","kind":"import-statement","original":"./binding"}],"format":"esm"},"src/context/index.ts":{"bytes":539,"imports":[{"path":"src/context/binder.ts","kind":"import-statement","original":"./binder"},{"path":"src/context/binding.ts","kind":"import-statement","original":"./binding"}],"format":"esm"},"src/errors.ts":{"bytes":939,"imports":[{"path":"@dxos/errors","kind":"import-statement","external":true}],"format":"esm"},"src/session/session.ts":{"bytes":38094,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"}],"format":"esm"},"src/session/version-pin.ts":{"bytes":4197,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"src/session/index.ts":{"bytes":556,"imports":[{"path":"src/session/session.ts","kind":"import-statement","original":"./session"},{"path":"src/session/version-pin.ts","kind":"import-statement","original":"./version-pin"}],"format":"esm"},"src/conversation/conversation.ts":{"bytes":8811,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/context/index.ts","kind":"import-statement","original":"../context"},{"path":"src/session/index.ts","kind":"import-statement","original":"../session"}],"format":"esm"},"src/conversation/index.ts":{"bytes":475,"imports":[{"path":"src/conversation/conversation.ts","kind":"import-statement","original":"./conversation"}],"format":"esm"},"src/extraction/extraction.ts":{"bytes":6822,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:./instructions.tpl?raw":{"bytes":1318,"imports":[]},"src/extraction/quotes.ts":{"bytes":7110,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/extraction/extraction-llm-function/extraction-llm-function.ts":{"bytes":8645,"imports":[{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"raw-loader:./instructions.tpl?raw","kind":"import-statement","original":"./instructions.tpl?raw"},{"path":"src/session/index.ts","kind":"import-statement","original":"../../session"},{"path":"src/extraction/extraction.ts","kind":"import-statement","original":"../extraction"},{"path":"src/extraction/quotes.ts","kind":"import-statement","original":"../quotes"}],"format":"esm"},"src/extraction/extraction-llm-function/index.ts":{"bytes":524,"imports":[{"path":"src/extraction/extraction-llm-function/extraction-llm-function.ts","kind":"import-statement","original":"./extraction-llm-function"}],"format":"esm"},"src/extraction/extraction-ner-function/named-entity-recognition.ts":{"bytes":10059,"imports":[{"path":"@xenova/transformers","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/extraction/extraction-ner-function/extraction-ner-function.ts":{"bytes":9002,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/extraction/extraction-ner-function/named-entity-recognition.ts","kind":"import-statement","original":"./named-entity-recognition"},{"path":"src/extraction/extraction.ts","kind":"import-statement","original":"../extraction"},{"path":"src/extraction/quotes.ts","kind":"import-statement","original":"../quotes"}],"format":"esm"},"src/extraction/extraction-ner-function/index.ts":{"bytes":652,"imports":[{"path":"src/extraction/extraction-ner-function/extraction-ner-function.ts","kind":"import-statement","original":"./extraction-ner-function"},{"path":"src/extraction/extraction-ner-function/named-entity-recognition.ts","kind":"import-statement","original":"./named-entity-recognition"}],"format":"esm"},"src/extraction/index.ts":{"bytes":803,"imports":[{"path":"src/extraction/extraction.ts","kind":"import-statement","original":"./extraction"},{"path":"src/extraction/extraction-llm-function/index.ts","kind":"import-statement","original":"./extraction-llm-function"},{"path":"src/extraction/extraction-ner-function/index.ts","kind":"import-statement","original":"./extraction-ner-function"},{"path":"src/extraction/quotes.ts","kind":"import-statement","original":"./quotes"}],"format":"esm"},"src/functions/services.ts":{"bytes":17484,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/functions/index.ts":{"bytes":460,"imports":[{"path":"src/functions/services.ts","kind":"import-statement","original":"./services"}],"format":"esm"},"src/testing/exa-search-1748337321991.ts":{"bytes":75508,"imports":[],"format":"esm"},"src/testing/exa-search-1748337331526.ts":{"bytes":90578,"imports":[],"format":"esm"},"src/testing/exa-search-1748337344119.ts":{"bytes":69950,"imports":[],"format":"esm"},"src/testing/index.ts":{"bytes":1205,"imports":[{"path":"src/testing/exa-search-1748337321991.ts","kind":"import-statement","original":"./exa-search-1748337321991"},{"path":"src/testing/exa-search-1748337331526.ts","kind":"import-statement","original":"./exa-search-1748337331526"},{"path":"src/testing/exa-search-1748337344119.ts","kind":"import-statement","original":"./exa-search-1748337344119"}],"format":"esm"},"src/research/exa.ts":{"bytes":10782,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"exa-js","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/testing/index.ts","kind":"import-statement","original":"../testing"}],"format":"esm"},"src/research/graph.ts":{"bytes":39416,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:./instructions-research.tpl?raw":{"bytes":5238,"imports":[]},"src/research/research.ts":{"bytes":10460,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/research/exa.ts","kind":"import-statement","original":"./exa"},{"path":"src/research/graph.ts","kind":"import-statement","original":"./graph"},{"path":"raw-loader:./instructions-research.tpl?raw","kind":"import-statement","original":"./instructions-research.tpl?raw"},{"path":"src/session/index.ts","kind":"import-statement","original":"../session"}],"format":"esm"},"src/research/index.ts":{"bytes":619,"imports":[{"path":"src/research/exa.ts","kind":"import-statement","original":"./exa"},{"path":"src/research/research.ts","kind":"import-statement","original":"./research"},{"path":"src/research/graph.ts","kind":"import-statement","original":"./graph"}],"format":"esm"},"raw-loader:./assistant.tpl?raw":{"bytes":5728,"imports":[]},"src/templates/prompt.ts":{"bytes":2143,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"raw-loader:./assistant.tpl?raw","kind":"import-statement","original":"./assistant.tpl?raw"}],"format":"esm"},"src/templates/index.ts":{"bytes":458,"imports":[{"path":"src/templates/prompt.ts","kind":"import-statement","original":"./prompt"}],"format":"esm"},"src/types.ts":{"bytes":6512,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1077,"imports":[{"path":"src/context/index.ts","kind":"import-statement","original":"./context"},{"path":"src/conversation/index.ts","kind":"import-statement","original":"./conversation"},{"path":"src/extraction/index.ts","kind":"import-statement","original":"./extraction"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"src/research/index.ts","kind":"import-statement","original":"./research"},{"path":"src/session/index.ts","kind":"import-statement","original":"./session"},{"path":"src/templates/index.ts","kind":"import-statement","original":"./templates"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":214545},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@xenova/transformers","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"exa-js","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}],"exports":["AiSession","ArtifactDiffResolver","ArtifactId","Bindings","ContextBinder","ContextBinding","Conversation","ExaToolkit","ExtractionInput","ExtractionOutput","LiveExaHandler","LocalSearchHandler","LocalSearchToolkit","MockExaHandler","ReferencedQuotes","Subgraph","VersionPin","combineNerTokens","createArtifactElement","createExtractionSchema","createSystemPrompt","createTokenGroups","extractFullEntities","extractionAnthropicFn","extractionNerFn","findQuotes","findRelatedSchema","getNer","getSanitizedSchemaName","insertReferences","makeGraphWriterHandler","makeGraphWriterToolkit","makeToolExecutionServiceFromFunctions","makeToolResolverFromFunctions","processTranscriptMessage","researchFn","sanitizeObjects"],"entryPoint":"src/index.ts","inputs":{"src/context/binder.ts":{"bytesInOutput":2163},"src/context/binding.ts":{"bytesInOutput":576},"src/context/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/conversation/conversation.ts":{"bytesInOutput":1651},"src/session/session.ts":{"bytesInOutput":7424},"src/errors.ts":{"bytesInOutput":123},"src/session/index.ts":{"bytesInOutput":0},"src/session/version-pin.ts":{"bytesInOutput":758},"src/conversation/index.ts":{"bytesInOutput":0},"src/extraction/extraction.ts":{"bytesInOutput":1418},"src/extraction/index.ts":{"bytesInOutput":0},"src/extraction/extraction-llm-function/extraction-llm-function.ts":{"bytesInOutput":1818},"raw-loader:./instructions.tpl?raw":{"bytesInOutput":1376},"src/extraction/quotes.ts":{"bytesInOutput":1687},"src/extraction/extraction-llm-function/index.ts":{"bytesInOutput":0},"src/extraction/extraction-ner-function/extraction-ner-function.ts":{"bytesInOutput":2633},"src/extraction/extraction-ner-function/named-entity-recognition.ts":{"bytesInOutput":2276},"src/extraction/extraction-ner-function/index.ts":{"bytesInOutput":0},"src/functions/services.ts":{"bytesInOutput":4087},"src/functions/index.ts":{"bytesInOutput":0},"src/research/exa.ts":{"bytesInOutput":2495},"src/testing/exa-search-1748337321991.ts":{"bytesInOutput":31265},"src/testing/exa-search-1748337331526.ts":{"bytesInOutput":43952},"src/testing/exa-search-1748337344119.ts":{"bytesInOutput":28760},"src/testing/index.ts":{"bytesInOutput":133},"src/research/index.ts":{"bytesInOutput":0},"src/research/research.ts":{"bytesInOutput":2138},"src/research/graph.ts":{"bytesInOutput":9290},"raw-loader:./instructions-research.tpl?raw":{"bytesInOutput":5375},"src/templates/prompt.ts":{"bytesInOutput":148},"raw-loader:./assistant.tpl?raw":{"bytesInOutput":5866},"src/templates/index.ts":{"bytesInOutput":0},"src/types.ts":{"bytesInOutput":1287}},"bytes":160770}}}
1
+ {"inputs":{"src/conversation/context.ts":{"bytes":13488,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/session/artifact-diff.ts":{"bytes":2594,"imports":[{"path":"effect","kind":"import-statement","external":true}],"format":"esm"},"src/errors.ts":{"bytes":939,"imports":[{"path":"@dxos/errors","kind":"import-statement","external":true}],"format":"esm"},"src/session/format.ts":{"bytes":16522,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/errors.ts","kind":"import-statement","original":"../errors"},{"path":"src/session/artifact-diff.ts","kind":"import-statement","original":"./artifact-diff"}],"format":"esm"},"src/session/session.ts":{"bytes":32915,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/session/format.ts","kind":"import-statement","original":"./format"}],"format":"esm"},"src/session/version-pin.ts":{"bytes":4194,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"src/session/index.ts":{"bytes":657,"imports":[{"path":"src/session/artifact-diff.ts","kind":"import-statement","original":"./artifact-diff"},{"path":"src/session/session.ts","kind":"import-statement","original":"./session"},{"path":"src/session/version-pin.ts","kind":"import-statement","original":"./version-pin"}],"format":"esm"},"src/conversation/conversation.ts":{"bytes":11539,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/session/index.ts","kind":"import-statement","original":"../session"},{"path":"src/conversation/context.ts","kind":"import-statement","original":"./context"}],"format":"esm"},"src/conversation/index.ts":{"bytes":562,"imports":[{"path":"src/conversation/context.ts","kind":"import-statement","original":"./context"},{"path":"src/conversation/conversation.ts","kind":"import-statement","original":"./conversation"}],"format":"esm"},"src/functions/services.ts":{"bytes":14283,"imports":[{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/functions/index.ts":{"bytes":460,"imports":[{"path":"src/functions/services.ts","kind":"import-statement","original":"./services"}],"format":"esm"},"raw-loader:./format.tpl?raw":{"bytes":1808,"imports":[]},"raw-loader:./system.tpl?raw":{"bytes":3227,"imports":[]},"src/templates/system.ts":{"bytes":2283,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"raw-loader:./format.tpl?raw","kind":"import-statement","original":"./format.tpl?raw"},{"path":"raw-loader:./system.tpl?raw","kind":"import-statement","original":"./system.tpl?raw"}],"format":"esm"},"src/templates/index.ts":{"bytes":458,"imports":[{"path":"src/templates/system.ts","kind":"import-statement","original":"./system"}],"format":"esm"},"src/types.ts":{"bytes":6867,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":894,"imports":[{"path":"src/conversation/index.ts","kind":"import-statement","original":"./conversation"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"src/session/index.ts","kind":"import-statement","original":"./session"},{"path":"src/templates/index.ts","kind":"import-statement","original":"./templates"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"}],"format":"esm"},"src/extraction/extraction.ts":{"bytes":6822,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/extraction/quotes.ts":{"bytes":7110,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:./instructions.tpl?raw":{"bytes":1318,"imports":[]},"src/extraction/extraction-llm-function/extraction-llm-function.ts":{"bytes":8710,"imports":[{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/session/index.ts","kind":"import-statement","original":"../../session"},{"path":"src/extraction/extraction.ts","kind":"import-statement","original":"../extraction"},{"path":"src/extraction/quotes.ts","kind":"import-statement","original":"../quotes"},{"path":"raw-loader:./instructions.tpl?raw","kind":"import-statement","original":"./instructions.tpl?raw"}],"format":"esm"},"src/extraction/extraction-llm-function/index.ts":{"bytes":524,"imports":[{"path":"src/extraction/extraction-llm-function/extraction-llm-function.ts","kind":"import-statement","original":"./extraction-llm-function"}],"format":"esm"},"src/extraction/extraction-ner-function/named-entity-recognition.ts":{"bytes":10059,"imports":[{"path":"@xenova/transformers","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/extraction/extraction-ner-function/extraction-ner-function.ts":{"bytes":9083,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/extraction/extraction.ts","kind":"import-statement","original":"../extraction"},{"path":"src/extraction/quotes.ts","kind":"import-statement","original":"../quotes"},{"path":"src/extraction/extraction-ner-function/named-entity-recognition.ts","kind":"dynamic-import","original":"./named-entity-recognition"}],"format":"esm"},"src/extraction/extraction-ner-function/index.ts":{"bytes":652,"imports":[{"path":"src/extraction/extraction-ner-function/extraction-ner-function.ts","kind":"import-statement","original":"./extraction-ner-function"},{"path":"src/extraction/extraction-ner-function/named-entity-recognition.ts","kind":"import-statement","original":"./named-entity-recognition"}],"format":"esm"},"src/extraction/index.ts":{"bytes":803,"imports":[{"path":"src/extraction/extraction.ts","kind":"import-statement","original":"./extraction"},{"path":"src/extraction/extraction-llm-function/index.ts","kind":"import-statement","original":"./extraction-llm-function"},{"path":"src/extraction/extraction-ner-function/index.ts","kind":"import-statement","original":"./extraction-ner-function"},{"path":"src/extraction/quotes.ts","kind":"import-statement","original":"./quotes"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":30109},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-XOOPGSGW.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["AiAssistantError","AiContextBinder","AiConversation","AiSession","ArtifactDiffResolver","ArtifactId","Bindings","ContextBinding","GenerationObserver","VersionPin","createArtifactElement","createSystemPrompt","makeToolExecutionServiceFromFunctions","makeToolResolverFromFunctions","templates"],"entryPoint":"src/index.ts","inputs":{"src/conversation/context.ts":{"bytesInOutput":2996},"src/conversation/index.ts":{"bytesInOutput":0},"src/conversation/conversation.ts":{"bytesInOutput":2477},"src/index.ts":{"bytesInOutput":0},"src/functions/services.ts":{"bytesInOutput":3281},"src/functions/index.ts":{"bytesInOutput":0},"src/templates/system.ts":{"bytesInOutput":234},"raw-loader:./format.tpl?raw":{"bytesInOutput":1888},"raw-loader:./system.tpl?raw":{"bytesInOutput":3299},"src/templates/index.ts":{"bytesInOutput":0},"src/types.ts":{"bytesInOutput":1321}},"bytes":16310},"dist/lib/node-esm/extraction/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17086},"dist/lib/node-esm/extraction/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-XOOPGSGW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-3UU5V4FS.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs","kind":"dynamic-import"}],"exports":["ExtractionInput","ExtractionOutput","ReferencedQuotes","combineNerTokens","createTokenGroups","extractFullEntities","extractionAnthropicFn","extractionNerFn","findQuotes","getNer","insertReferences","processTranscriptMessage"],"entryPoint":"src/extraction/index.ts","inputs":{"src/extraction/extraction.ts":{"bytesInOutput":1370},"src/extraction/index.ts":{"bytesInOutput":0},"src/extraction/extraction-llm-function/extraction-llm-function.ts":{"bytesInOutput":1819},"src/extraction/quotes.ts":{"bytesInOutput":1673},"raw-loader:./instructions.tpl?raw":{"bytesInOutput":1376},"src/extraction/extraction-llm-function/index.ts":{"bytesInOutput":0},"src/extraction/extraction-ner-function/extraction-ner-function.ts":{"bytesInOutput":2729},"src/extraction/extraction-ner-function/index.ts":{"bytesInOutput":0}},"bytes":9821},"dist/lib/node-esm/chunk-XOOPGSGW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":28433},"dist/lib/node-esm/chunk-XOOPGSGW.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@effect/ai","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["AiAssistantError","AiSession","ArtifactDiffResolver","GenerationObserver","VersionPin"],"inputs":{"src/session/artifact-diff.ts":{"bytesInOutput":134},"src/errors.ts":{"bytesInOutput":123},"src/session/session.ts":{"bytesInOutput":6467},"src/session/format.ts":{"bytesInOutput":3692},"src/session/version-pin.ts":{"bytesInOutput":731},"src/session/index.ts":{"bytesInOutput":0}},"bytes":11550},"dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-3UU5V4FS.mjs","kind":"import-statement"}],"exports":["combineNerTokens","createTokenGroups","extractFullEntities","getNer"],"entryPoint":"src/extraction/extraction-ner-function/named-entity-recognition.ts","inputs":{},"bytes":353},"dist/lib/node-esm/chunk-3UU5V4FS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5243},"dist/lib/node-esm/chunk-3UU5V4FS.mjs":{"imports":[{"path":"@xenova/transformers","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["combineNerTokens","createTokenGroups","extractFullEntities","getNer"],"inputs":{"src/extraction/extraction-ner-function/named-entity-recognition.ts":{"bytesInOutput":2265}},"bytes":2558}}}
@@ -0,0 +1,14 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ combineNerTokens,
4
+ createTokenGroups,
5
+ extractFullEntities,
6
+ getNer
7
+ } from "./chunk-3UU5V4FS.mjs";
8
+ export {
9
+ combineNerTokens,
10
+ createTokenGroups,
11
+ extractFullEntities,
12
+ getNer
13
+ };
14
+ //# sourceMappingURL=named-entity-recognition-W4VMRCH6.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,90 @@
1
+ import { type ReadonlySignal } from '@preact/signals-core';
2
+ import { Schema } from 'effect';
3
+ import { Blueprint } from '@dxos/blueprints';
4
+ import { type Ref, Type } from '@dxos/echo';
5
+ import { type Queue } from '@dxos/echo-db';
6
+ import { ComplexSet } from '@dxos/util';
7
+ /**
8
+ * Thread message that binds or unbinds contextual objects to a conversation.
9
+ */
10
+ export declare const ContextBinding: Type.obj<Schema.Struct<{
11
+ blueprints: Schema.Struct<{
12
+ added: Schema.Array$<Type.ref<Type.obj<Schema.Struct<{
13
+ key: Schema.SchemaClass<string, string, never>;
14
+ name: Schema.SchemaClass<string, string, never>;
15
+ description: Schema.optional<typeof Schema.String>;
16
+ instructions: Schema.mutable<Schema.Struct<{
17
+ source: Schema.SchemaClass<import("@dxos/echo-schema").Ref<Type.OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
18
+ content: string;
19
+ }>, import("@dxos/echo-protocol").EncodedReference, never>;
20
+ inputs: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
21
+ name: typeof Schema.String;
22
+ kind: Schema.optional<Schema.Literal<["value", "pass-through", "retriever", "function", "query", "resolver", "context", "schema"]>>;
23
+ default: Schema.optional<typeof Schema.Any>;
24
+ }>>>>>;
25
+ }>>;
26
+ tools: Schema.Array$<Schema.brand<typeof Schema.String, "ToolId">>;
27
+ }>>>>;
28
+ removed: Schema.Array$<Type.ref<Type.obj<Schema.Struct<{
29
+ key: Schema.SchemaClass<string, string, never>;
30
+ name: Schema.SchemaClass<string, string, never>;
31
+ description: Schema.optional<typeof Schema.String>;
32
+ instructions: Schema.mutable<Schema.Struct<{
33
+ source: Schema.SchemaClass<import("@dxos/echo-schema").Ref<Type.OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
34
+ content: string;
35
+ }>, import("@dxos/echo-protocol").EncodedReference, never>;
36
+ inputs: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
37
+ name: typeof Schema.String;
38
+ kind: Schema.optional<Schema.Literal<["value", "pass-through", "retriever", "function", "query", "resolver", "context", "schema"]>>;
39
+ default: Schema.optional<typeof Schema.Any>;
40
+ }>>>>>;
41
+ }>>;
42
+ tools: Schema.Array$<Schema.brand<typeof Schema.String, "ToolId">>;
43
+ }>>>>;
44
+ }>;
45
+ objects: Schema.Struct<{
46
+ added: Schema.Array$<Type.ref<Schema.Schema<Type.Expando, {
47
+ [x: string]: any;
48
+ id: string;
49
+ }, never>>>;
50
+ removed: Schema.Array$<Type.ref<Schema.Schema<Type.Expando, {
51
+ [x: string]: any;
52
+ id: string;
53
+ }, never>>>;
54
+ }>;
55
+ }>>;
56
+ export interface ContextBinding extends Schema.Schema.Type<typeof ContextBinding> {
57
+ }
58
+ export type BindingProps = Partial<{
59
+ blueprints: Ref.Ref<Blueprint.Blueprint>[];
60
+ objects: Ref.Ref<Type.Expando>[];
61
+ }>;
62
+ export declare class Bindings {
63
+ readonly blueprints: ComplexSet<Ref.Ref<Blueprint.Blueprint>>;
64
+ readonly objects: ComplexSet<Ref.Ref<Type.Expando>>;
65
+ toJSON(): {
66
+ blueprints: Type.DXN.String[];
67
+ objects: Type.DXN.String[];
68
+ };
69
+ }
70
+ /**
71
+ * Manages bindings of blueprints and objects to a conversation.
72
+ */
73
+ export declare class AiContextBinder {
74
+ private readonly _queue;
75
+ /**
76
+ * Reactive query of all bindings.
77
+ */
78
+ readonly bindings: ReadonlySignal<Bindings>;
79
+ readonly blueprints: ReadonlySignal<Ref.Ref<Blueprint.Blueprint>[]>;
80
+ readonly objects: ReadonlySignal<Ref.Ref<Type.Expando>[]>;
81
+ constructor(_queue: Queue);
82
+ /**
83
+ * Asynchronous query of all bindings.
84
+ */
85
+ query(): Promise<Bindings>;
86
+ bind(props: BindingProps): Promise<void>;
87
+ unbind(props: BindingProps): Promise<void>;
88
+ private _reduce;
89
+ }
90
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/conversation/context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAO,KAAK,GAAG,EAAiB,IAAI,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC;;GAEG;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB1B,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC;CAAG;AAEpF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;IACjC,UAAU,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;IAC3C,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;CAClC,CAAC,CAAC;AAEH,qBAAa,QAAQ;IACnB,QAAQ,CAAC,UAAU,2CAA6E;IAChG,QAAQ,CAAC,OAAO,oCAAsE;IAEtF,MAAM;;;;CAMP;AAED;;GAEG;AACH,qBAAa,eAAe;IAad,OAAO,CAAC,QAAQ,CAAC,MAAM;IAZnC;;OAEG;IAEH,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAqD;IAEhG,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAEhE;IAEH,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAoD;gBAEhF,MAAM,EAAE,KAAK;IAE1C;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC;IAM1B,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBxC,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBhD,OAAO,CAAC,OAAO;CAahB"}
@@ -1,18 +1,23 @@
1
1
  import { type AiError, type AiLanguageModel, type AiTool, type AiToolkit } from '@effect/ai';
2
2
  import { Effect } from 'effect';
3
- import { type ToolExecutionService, type ToolResolverService, type AiInputPreprocessingError, type AiToolNotFoundError } from '@dxos/ai';
3
+ import { type AiInputPreprocessingError, type AiToolNotFoundError, type ToolExecutionService, type ToolResolverService } from '@dxos/ai';
4
4
  import { Event } from '@dxos/async';
5
5
  import { type Queue } from '@dxos/echo-db';
6
6
  import { DataType } from '@dxos/schema';
7
- import { ContextBinder, type ContextBinding } from '../context';
8
- import type { AiAssistantError } from '../errors';
9
- import { AiSession } from '../session';
10
- export interface ConversationRunOptions<Tools extends AiTool.Any> {
11
- systemPrompt?: string;
7
+ import { type AiAssistantError } from '../errors';
8
+ import { AiSession, type GenerationObserver } from '../session';
9
+ import { AiContextBinder, type ContextBinding } from './context';
10
+ export interface AiConversationRunParams<Tools extends AiTool.Any> {
12
11
  prompt: string;
12
+ system?: string;
13
13
  toolkit?: AiToolkit.AiToolkit<Tools>;
14
+ observer?: GenerationObserver;
15
+ /**
16
+ * @deprecated Remove
17
+ */
18
+ session?: AiSession;
14
19
  }
15
- export type ConversationOptions = {
20
+ export type AiConversationOptions = {
16
21
  queue: Queue<DataType.Message | ContextBinding>;
17
22
  };
18
23
  /**
@@ -20,19 +25,26 @@ export type ConversationOptions = {
20
25
  * Context + history + artifacts.
21
26
  * Backed by a Queue.
22
27
  */
23
- export declare class Conversation {
28
+ export declare class AiConversation {
24
29
  private readonly _queue;
30
+ /**
31
+ * Blueprints bound to the conversation.
32
+ */
33
+ readonly _context: AiContextBinder;
25
34
  /**
26
35
  * Fired when the execution loop begins.
27
36
  * This is called before the first message is sent.
37
+ *
38
+ * @deprecated Pass in a session instead.
28
39
  */
29
40
  readonly onBegin: Event<AiSession>;
41
+ constructor(options: AiConversationOptions);
42
+ get context(): AiContextBinder;
43
+ getHistory(): Promise<DataType.Message[]>;
30
44
  /**
31
- * Blueprints bound to the conversation.
45
+ * Executes a prompt.
46
+ * Each invocation creates a new `AiSession`, which handles potential tool calls.
32
47
  */
33
- readonly context: ContextBinder;
34
- constructor(options: ConversationOptions);
35
- getHistory(): Promise<DataType.Message[]>;
36
- run: <Tools extends AiTool.Any>(options: ConversationRunOptions<Tools>) => Effect.Effect<DataType.Message[], AiAssistantError | AiInputPreprocessingError | AiError.AiError | AiToolNotFoundError, AiLanguageModel.AiLanguageModel | ToolResolverService | ToolExecutionService | AiTool.ToHandler<Tools>>;
48
+ run: <Tools extends AiTool.Any>({ session, ...params }: AiConversationRunParams<Tools>) => Effect.Effect<DataType.Message[], AiAssistantError | AiInputPreprocessingError | AiError.AiError | AiToolNotFoundError, AiLanguageModel.AiLanguageModel | ToolResolverService | ToolExecutionService | AiTool.ToHandler<Tools>>;
37
49
  }
38
50
  //# sourceMappingURL=conversation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../src/conversation/conversation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,sBAAsB,CAAC,KAAK,SAAS,MAAM,CAAC,GAAG;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;CACtC;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,cAAc,CAAC,CAAC;CACjD,CAAC;AAEF;;;;GAIG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;IACH,SAAgB,OAAO,mBAA0B;IAEjD;;OAEG;IACH,SAAgB,OAAO,EAAE,aAAa,CAAC;gBAE3B,OAAO,EAAE,mBAAmB;IAKlC,UAAU,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAK/C,GAAG,GAAI,KAAK,SAAS,MAAM,CAAC,GAAG,EAC7B,SAAS,sBAAsB,CAAC,KAAK,CAAC,KACrC,MAAM,CAAC,MAAM,CACd,QAAQ,CAAC,OAAO,EAAE,EAClB,gBAAgB,GAAG,yBAAyB,GAAG,OAAO,CAAC,OAAO,GAAG,mBAAmB,EACpF,eAAe,CAAC,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CACvG,CAyB8C;CAChD"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../src/conversation/conversation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,MAAM,WAAW,uBAAuB,CAAC,KAAK,SAAS,MAAM,CAAC,GAAG;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,cAAc,CAAC,CAAC;CACjD,CAAC;AAEF;;;;GAIG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;OAEG;IACH,SAAgB,QAAQ,EAAE,eAAe,CAAC;IAE1C;;;;;OAKG;IAEH,SAAgB,OAAO,mBAA0B;gBAErC,OAAO,EAAE,qBAAqB;IAK1C,IAAI,OAAO,oBAEV;IAEK,UAAU,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAK/C;;;OAGG;IACH,GAAG,GAAI,KAAK,SAAS,MAAM,CAAC,GAAG,EAAE,wBAI9B,uBAAuB,CAAC,KAAK,CAAC,KAAG,MAAM,CAAC,MAAM,CAC/C,QAAQ,CAAC,OAAO,EAAE,EAClB,gBAAgB,GAAG,yBAAyB,GAAG,OAAO,CAAC,OAAO,GAAG,mBAAmB,EACpF,eAAe,CAAC,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CACvG,CAkCgD;CAClD"}
@@ -1,2 +1,3 @@
1
+ export * from './context';
1
2
  export * from './conversation';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/conversation/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/conversation/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { BaseError } from '@dxos/errors';
2
2
  declare const AiAssistantError_base: {
3
3
  new (message: string, options?: import("@dxos/errors").BaseErrorOptions): {
4
- "__#1@#code": "AI_ASSISTANT_ERROR";
5
- "__#1@#context": Record<string, unknown>;
4
+ #code: "AI_ASSISTANT_ERROR";
5
+ #context: Record<string, unknown>;
6
6
  readonly name: "AI_ASSISTANT_ERROR";
7
7
  readonly code: "AI_ASSISTANT_ERROR";
8
8
  readonly _tag: "AI_ASSISTANT_ERROR";
@@ -14,8 +14,8 @@ declare const AiAssistantError_base: {
14
14
  code: "AI_ASSISTANT_ERROR";
15
15
  is(error: unknown): error is BaseError;
16
16
  wrap(message: string, options?: Omit<import("@dxos/errors").BaseErrorOptions, "cause">): (error: unknown) => {
17
- "__#1@#code": "AI_ASSISTANT_ERROR";
18
- "__#1@#context": Record<string, unknown>;
17
+ #code: "AI_ASSISTANT_ERROR";
18
+ #context: Record<string, unknown>;
19
19
  readonly name: "AI_ASSISTANT_ERROR";
20
20
  readonly code: "AI_ASSISTANT_ERROR";
21
21
  readonly _tag: "AI_ASSISTANT_ERROR";
@@ -25,6 +25,7 @@ declare const AiAssistantError_base: {
25
25
  cause?: unknown;
26
26
  };
27
27
  extend<Code extends string>(code: Code): any;
28
+ isError(error: unknown): error is Error;
28
29
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
29
30
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
30
31
  stackTraceLimit: number;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,qBAAsC;CAAG"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,qBAAsC;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"extraction-llm-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/extraction-llm-function.ts"],"names":[],"mappings":"AAUA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGlE,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAmDtF,CAAC"}
1
+ {"version":3,"file":"extraction-llm-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/extraction-llm-function.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,kBAAkB,EAAkB,MAAM,iBAAiB,CAAC;AAI1E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKlE,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAmDtF,CAAC"}
@@ -1,10 +1,15 @@
1
1
  export declare const extractionNerFn: import("@dxos/functions").FunctionDefinition<{
2
+ readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
3
+ readonly options?: {
4
+ readonly timeout?: number | undefined;
5
+ readonly fallbackToRaw?: boolean | undefined;
6
+ } | undefined;
2
7
  readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
3
8
  id: string;
9
+ parentMessage?: string | undefined;
4
10
  created: string;
5
11
  sender: {
6
12
  name?: string | undefined;
7
- email?: string | undefined;
8
13
  contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
9
14
  fields?: {
10
15
  readonly value: string;
@@ -58,6 +63,7 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
58
63
  }> | undefined;
59
64
  identityDid?: string | undefined;
60
65
  identityKey?: string | undefined;
66
+ email?: string | undefined;
61
67
  role?: "user" | "assistant" | undefined;
62
68
  };
63
69
  blocks: ({
@@ -72,15 +78,15 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
72
78
  url: string;
73
79
  mediaType?: string | undefined;
74
80
  } | {
75
- id?: string | undefined;
76
81
  source?: {
77
- type: "base64";
78
82
  mediaType: string;
83
+ type: "base64";
79
84
  data: string;
80
85
  } | {
81
- type: "http";
82
86
  url: string;
87
+ type: "http";
83
88
  } | undefined;
89
+ id?: string | undefined;
84
90
  _tag: "image";
85
91
  pending?: boolean | undefined;
86
92
  } | {
@@ -120,21 +126,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
120
126
  pending?: boolean | undefined;
121
127
  disposition?: string | undefined;
122
128
  mimeType?: string | undefined;
129
+ } | {
130
+ _tag: "toolkit";
131
+ pending?: boolean | undefined;
123
132
  } | {
124
133
  name: string;
125
- input: unknown;
126
134
  _tag: "toolCall";
127
135
  pending?: boolean | undefined;
128
136
  toolCallId: string;
129
- } | {
130
- _tag: "toolList";
131
- pending?: boolean | undefined;
137
+ input: unknown;
132
138
  } | {
133
139
  name: string;
134
140
  _tag: "toolResult";
135
141
  pending?: boolean | undefined;
136
142
  toolCallId: string;
137
143
  result: unknown;
144
+ error?: string | undefined;
138
145
  } | {
139
146
  text: string;
140
147
  _tag: "transcript";
@@ -145,18 +152,13 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
145
152
  [x: string]: any;
146
153
  } | undefined;
147
154
  };
148
- readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
149
- readonly options?: {
150
- readonly timeout?: number | undefined;
151
- readonly fallbackToRaw?: boolean | undefined;
152
- } | undefined;
153
155
  }, {
154
156
  readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
155
157
  id: string;
158
+ parentMessage?: string | undefined;
156
159
  created: string;
157
160
  sender: {
158
161
  name?: string | undefined;
159
- email?: string | undefined;
160
162
  contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
161
163
  fields?: {
162
164
  readonly value: string;
@@ -210,6 +212,7 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
210
212
  }> | undefined;
211
213
  identityDid?: string | undefined;
212
214
  identityKey?: string | undefined;
215
+ email?: string | undefined;
213
216
  role?: "user" | "assistant" | undefined;
214
217
  };
215
218
  blocks: ({
@@ -224,15 +227,15 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
224
227
  url: string;
225
228
  mediaType?: string | undefined;
226
229
  } | {
227
- id?: string | undefined;
228
230
  source?: {
229
- type: "base64";
230
231
  mediaType: string;
232
+ type: "base64";
231
233
  data: string;
232
234
  } | {
233
- type: "http";
234
235
  url: string;
236
+ type: "http";
235
237
  } | undefined;
238
+ id?: string | undefined;
236
239
  _tag: "image";
237
240
  pending?: boolean | undefined;
238
241
  } | {
@@ -272,21 +275,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
272
275
  pending?: boolean | undefined;
273
276
  disposition?: string | undefined;
274
277
  mimeType?: string | undefined;
278
+ } | {
279
+ _tag: "toolkit";
280
+ pending?: boolean | undefined;
275
281
  } | {
276
282
  name: string;
277
- input: unknown;
278
283
  _tag: "toolCall";
279
284
  pending?: boolean | undefined;
280
285
  toolCallId: string;
281
- } | {
282
- _tag: "toolList";
283
- pending?: boolean | undefined;
286
+ input: unknown;
284
287
  } | {
285
288
  name: string;
286
289
  _tag: "toolResult";
287
290
  pending?: boolean | undefined;
288
291
  toolCallId: string;
289
292
  result: unknown;
293
+ error?: string | undefined;
290
294
  } | {
291
295
  text: string;
292
296
  _tag: "transcript";
@@ -1 +1 @@
1
- {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC1B,CAAC"}
1
+ {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC1B,CAAC"}