@futdevpro/nts-dynamo 1.14.28 → 1.14.31
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.
- package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-chunk-data.service.d.ts → data-services/oai-doc-chunk-data.service.d.ts} +4 -4
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-chunk-data.service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-chunk-data.service.js → data-services/oai-doc-chunk-data.service.js} +4 -4
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-chunk-data.service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-page.data-service.d.ts → data-services/oai-doc-page.data-service.d.ts} +5 -5
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-page.data-service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-doc-page.data-service.js → data-services/oai-doc-page.data-service.js} +3 -3
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-page.data-service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-document.data-service.d.ts → data-services/oai-document.data-service.d.ts} +5 -5
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-document.data-service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-document.data-service.js → data-services/oai-document.data-service.js} +3 -3
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-document.data-service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-vector-data.service.d.ts → data-services/oai-vector-data.service.d.ts} +2 -2
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-vector-data.service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/{oai-vector-data.service.js → data-services/oai-vector-data.service.js} +3 -3
- package/build/_modules/ai/_modules/open-ai/_services/data-services/oai-vector-data.service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.d.ts +9 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.js +14 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts +49 -3
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js +72 -2
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +61 -6
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +207 -16
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/index.d.ts +4 -4
- package/build/_modules/ai/_modules/open-ai/index.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/index.js +6 -5
- package/build/_modules/ai/_modules/open-ai/index.js.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts +0 -2
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts +2 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.js +2 -1
- package/build/_modules/ai/_services/ai-provider.service-base.js.map +1 -1
- package/build/_modules/assistant/_collections/ass.util.d.ts +2 -2
- package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts +5 -9
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.js +9 -10
- package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts +26 -10
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.js +49 -4
- package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -1
- package/build/_modules/assistant/index.d.ts +1 -1
- package/build/_modules/assistant/index.d.ts.map +1 -1
- package/build/_modules/assistant/index.js +1 -1
- package/build/_modules/assistant/index.js.map +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts +17 -0
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/{bot-message.interface.js → bot-channel-wrapper.interface.js} +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-command.interface.d.ts +2 -2
- package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts +16 -13
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts +17 -0
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/{bot-channel.interface.js → bot-user-wrapper.interface.js} +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +0 -7
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +10 -2
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts +67 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js +391 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/index.d.ts +1 -4
- package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/index.js +2 -5
- package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts +3 -3
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js +2 -2
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts +59 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/{dyb-messaging-provider.service.js → dyb-messaging-provider.control-service.js} +130 -108
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/index.js +1 -2
- package/build/_modules/bot/_modules/dynamo-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts +55 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js +132 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/index.js +1 -3
- package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts +55 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js +132 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/index.js +1 -3
- package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts +8 -11
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.js +60 -15
- package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.d.ts +16 -17
- package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.js +60 -51
- package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.d.ts +17 -37
- package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.js +107 -263
- package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts +70 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.js +16 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.js.map +1 -0
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts +6 -9
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-routines.control-service.js +29 -9
- package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -1
- package/build/_modules/bot/index.d.ts +3 -7
- package/build/_modules/bot/index.d.ts.map +1 -1
- package/build/_modules/bot/index.js +9 -7
- package/build/_modules/bot/index.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -1
- package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg-global-settings.const.js +0 -5
- package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -1
- package/build/_modules/messaging/_collections/msg.util.d.ts +2 -2
- package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg.util.js.map +1 -1
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +0 -9
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +0 -25
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -1
- package/build/_modules/messaging/_services/msg-integration.control-service.js +180 -125
- package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -1
- package/build/_modules/messaging/index.d.ts +0 -1
- package/build/_modules/messaging/index.d.ts.map +1 -1
- package/build/_modules/messaging/index.js +1 -1
- package/build/_modules/messaging/index.js.map +1 -1
- package/package.json +1 -1
- package/src/_modules/ai/_modules/open-ai/_services/{oai-doc-chunk-data.service.ts → data-services/oai-doc-chunk-data.service.ts} +8 -8
- package/src/_modules/ai/_modules/open-ai/_services/{oai-doc-page.data-service.ts → data-services/oai-doc-page.data-service.ts} +8 -8
- package/src/_modules/ai/_modules/open-ai/_services/{oai-document.data-service.ts → data-services/oai-document.data-service.ts} +7 -7
- package/src/_modules/ai/_modules/open-ai/_services/{oai-vector-data.service.ts → data-services/oai-vector-data.service.ts} +4 -4
- package/src/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.ts +18 -2
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.ts +84 -3
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +243 -8
- package/src/_modules/ai/_modules/open-ai/index.ts +6 -5
- package/src/_modules/ai/_services/ai-llm.service-base.ts +2 -2
- package/src/_modules/ai/_services/ai-provider.service-base.ts +2 -1
- package/src/_modules/assistant/_collections/ass.util.ts +2 -2
- package/src/_modules/assistant/_services/ass-io.control-service.ts +17 -48
- package/src/_modules/assistant/_services/ass-main.control-service.ts +83 -32
- package/src/_modules/assistant/index.ts +1 -1
- package/src/_modules/bot/_models/bot-channel-wrapper.interface.ts +24 -0
- package/src/_modules/bot/_models/bot-command.interface.ts +2 -2
- package/src/_modules/bot/_models/bot-global-settings.interface.ts +1 -1
- package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +18 -18
- package/src/_modules/bot/_models/bot-user-wrapper.interface.ts +35 -0
- package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +8 -7
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.ts +521 -0
- package/src/_modules/bot/_modules/discord-bot/index.ts +2 -5
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +8 -5
- package/src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts +431 -0
- package/src/_modules/bot/_modules/dynamo-bot/index.ts +1 -2
- package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.ts +186 -0
- package/src/_modules/bot/_modules/slack-bot/index.ts +1 -3
- package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.ts +186 -0
- package/src/_modules/bot/_modules/teams-bot/index.ts +1 -4
- package/src/_modules/bot/_services/bot-commands.control-service.ts +64 -34
- package/src/_modules/bot/_services/bot-io.control-service.ts +86 -95
- package/src/_modules/bot/_services/bot-main.control-service.ts +249 -240
- package/src/_modules/bot/_services/bot-messaging-provider.service-base.ts +152 -0
- package/src/_modules/bot/_services/bot-routines.control-service.ts +39 -44
- package/src/_modules/bot/index.ts +9 -7
- package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +1 -1
- package/src/_modules/messaging/README.md +2 -7
- package/src/_modules/messaging/_collections/msg-global-settings.const.ts +0 -6
- package/src/_modules/messaging/_collections/msg.util.ts +2 -2
- package/src/_modules/messaging/_models/msg-global-settings.interface.ts +0 -12
- package/src/_modules/messaging/_services/msg-integration.control-service.ts +180 -179
- package/src/_modules/messaging/index.ts +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js.map +0 -1
- package/build/_modules/assistant/_services/ass.service-base.d.ts +0 -33
- package/build/_modules/assistant/_services/ass.service-base.d.ts.map +0 -1
- package/build/_modules/assistant/_services/ass.service-base.js +0 -58
- package/build/_modules/assistant/_services/ass.service-base.js.map +0 -1
- package/build/_modules/bot/_collections/bot-operations.util.d.ts +0 -21
- package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_collections/bot-operations.util.js +0 -74
- package/build/_modules/bot/_collections/bot-operations.util.js.map +0 -1
- package/build/_modules/bot/_models/bot-channel.interface.d.ts +0 -8
- package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-channel.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-message.interface.d.ts +0 -15
- package/build/_modules/bot/_models/bot-message.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-message.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts +0 -68
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js +0 -3
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-user.interface.d.ts +0 -8
- package/build/_modules/bot/_models/bot-user.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-user.interface.js +0 -3
- package/build/_modules/bot/_models/bot-user.interface.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +0 -13
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +0 -5
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +0 -19
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts +0 -56
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js +0 -379
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts +0 -5
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js +0 -26
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts +0 -55
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +0 -13
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts +0 -41
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js +0 -119
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +0 -13
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts +0 -41
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js +0 -119
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts +0 -6
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts.map +0 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js +0 -47
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js.map +0 -1
- package/src/_modules/assistant/_services/ass.service-base.ts +0 -100
- package/src/_modules/bot/_collections/bot-operations.util.ts +0 -149
- package/src/_modules/bot/_models/bot-channel.interface.ts +0 -7
- package/src/_modules/bot/_models/bot-message.interface.ts +0 -14
- package/src/_modules/bot/_models/bot-messaging-provider.interface.ts +0 -88
- package/src/_modules/bot/_models/bot-user.interface.ts +0 -7
- package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +0 -20
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.ts +0 -475
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.ts +0 -26
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.ts +0 -403
- package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.ts +0 -156
- package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.ts +0 -156
- package/src/_modules/bot/_services/bot-messaging-provider-factory.service.ts +0 -56
|
@@ -1,126 +1,181 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* Messaging Integration Control Service
|
|
13
|
-
* Handles integration between messaging system and bot/assistant modules
|
|
14
|
-
*/
|
|
15
|
-
class DyNTS_Msg_Integration_ControlService extends
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
1
|
+
//import { DyNTS_SingletonService } from '../../../_services/base/singleton.service';
|
|
2
|
+
//import { DyFM_Error, DyFM_Log, DyFM_DBFilter } from '@futdevpro/fsm-dynamo';
|
|
3
|
+
//import { DyFM_Msg_Message, DyFM_Msg_Conversation } from '@futdevpro/fsm-dynamo/messaging';
|
|
4
|
+
//import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
|
|
5
|
+
//import { DyNTS_Msg_Message_DataService } from './msg-message.data-service';
|
|
6
|
+
//import { DyNTS_Msg_Conversation_DataService } from './msg-conversation.data-service';
|
|
7
|
+
//import { DyNTS_Msg_Events_Service } from './msg-events.service';
|
|
8
|
+
//import { DyNTS_Msg_Util } from '../_collections/msg.util';
|
|
9
|
+
//import { DyNTS_Bot_MessageWrapper } from '../../bot/_models/bot-message.interface';
|
|
10
|
+
//
|
|
11
|
+
///**
|
|
12
|
+
// * Messaging Integration Control Service
|
|
13
|
+
// * Handles integration between messaging system and bot/assistant modules
|
|
14
|
+
// */
|
|
15
|
+
//export class DyNTS_Msg_Integration_ControlService extends DyNTS_SingletonService {
|
|
16
|
+
//
|
|
17
|
+
// static getInstance(): DyNTS_Msg_Integration_ControlService {
|
|
18
|
+
// return DyNTS_Msg_Integration_ControlService.getSingletonInstance();
|
|
19
|
+
// }
|
|
20
|
+
//
|
|
21
|
+
// private eventsService = DyNTS_Msg_Events_Service.getInstance();
|
|
22
|
+
//
|
|
23
|
+
// /**
|
|
24
|
+
// * Sync bot message to messaging system
|
|
25
|
+
// * Called from bot IO when message is received
|
|
26
|
+
// */
|
|
27
|
+
// async syncBotMessage<T>(
|
|
28
|
+
// botMessage: DyNTS_Bot_MessageWrapper<T>,
|
|
29
|
+
// conversationId: string,
|
|
30
|
+
// issuer: string
|
|
31
|
+
// ): Promise<DyFM_Msg_Message> {
|
|
32
|
+
// try {
|
|
33
|
+
// if (!DyNTS_global_settings.messaging_settings?.integration?.syncBotMessages) {
|
|
34
|
+
// throw new Error('Bot message sync is disabled');
|
|
35
|
+
// }
|
|
36
|
+
//
|
|
37
|
+
// // Convert bot message to messaging format
|
|
38
|
+
// const msgMessage = DyNTS_Msg_Util.botMessageToMsgMessage(
|
|
39
|
+
// botMessage,
|
|
40
|
+
// conversationId,
|
|
41
|
+
// issuer
|
|
42
|
+
// );
|
|
43
|
+
//
|
|
44
|
+
// // Save to database
|
|
45
|
+
// const messageService = new DyNTS_Msg_Message_DataService({
|
|
46
|
+
// message: msgMessage,
|
|
47
|
+
// issuer,
|
|
48
|
+
// });
|
|
49
|
+
//
|
|
50
|
+
// await messageService.saveData(messageService.data, false, false);
|
|
51
|
+
//
|
|
52
|
+
// // Update conversation last message
|
|
53
|
+
// const conversationService = new DyNTS_Msg_Conversation_DataService({
|
|
54
|
+
// issuer,
|
|
55
|
+
// });
|
|
56
|
+
//
|
|
57
|
+
// await conversationService.updateLastMessage(
|
|
58
|
+
// conversationId,
|
|
59
|
+
// messageService.data._id!,
|
|
60
|
+
// msgMessage.content.substring(0, 100)
|
|
61
|
+
// );
|
|
62
|
+
//
|
|
63
|
+
// // Emit real-time event
|
|
64
|
+
// this.eventsService.emitMessageSent(messageService.data, conversationId);
|
|
65
|
+
//
|
|
66
|
+
// return messageService.data;
|
|
67
|
+
// } catch (error) {
|
|
68
|
+
// DyFM_Log.error('Failed to sync bot message', error);
|
|
69
|
+
// throw new DyFM_Error({
|
|
70
|
+
// ...this.getDefaultErrorSettings('syncBotMessage', error, issuer),
|
|
71
|
+
// errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-SBM`,
|
|
72
|
+
// userMessage: 'Failed to sync bot message to messaging system.',
|
|
73
|
+
// });
|
|
74
|
+
// }
|
|
75
|
+
// }
|
|
76
|
+
//
|
|
77
|
+
// /**
|
|
78
|
+
// * Sync assistant response to messaging system
|
|
79
|
+
// * Called from assistant IO when AI responds
|
|
80
|
+
// */
|
|
81
|
+
// async syncAssistantMessage(
|
|
82
|
+
// content: string,
|
|
83
|
+
// conversationId: string,
|
|
84
|
+
// aiProvider: string,
|
|
85
|
+
// aiModel: string,
|
|
86
|
+
// senderId: string,
|
|
87
|
+
// issuer: string
|
|
88
|
+
// ): Promise<DyFM_Msg_Message> {
|
|
89
|
+
// try {
|
|
90
|
+
// if (!DyNTS_global_settings.messaging_settings?.integration?.syncAssistantMessages) {
|
|
91
|
+
// throw new Error('Assistant message sync is disabled');
|
|
92
|
+
// }
|
|
93
|
+
//
|
|
94
|
+
// // Create AI message
|
|
95
|
+
// const msgMessage = DyNTS_Msg_Util.createAIMessage(
|
|
96
|
+
// conversationId,
|
|
97
|
+
// content,
|
|
98
|
+
// aiProvider,
|
|
99
|
+
// aiModel,
|
|
100
|
+
// senderId,
|
|
101
|
+
// issuer
|
|
102
|
+
// );
|
|
103
|
+
//
|
|
104
|
+
// // Save to database
|
|
105
|
+
// const messageService = new DyNTS_Msg_Message_DataService({
|
|
106
|
+
// message: msgMessage,
|
|
107
|
+
// issuer,
|
|
108
|
+
// });
|
|
109
|
+
//
|
|
110
|
+
// await messageService.saveData(messageService.data, false, false);
|
|
111
|
+
//
|
|
112
|
+
// // Update conversation last message
|
|
113
|
+
// const conversationService = new DyNTS_Msg_Conversation_DataService({
|
|
114
|
+
// issuer,
|
|
115
|
+
// });
|
|
116
|
+
//
|
|
117
|
+
// await conversationService.updateLastMessage(
|
|
118
|
+
// conversationId,
|
|
119
|
+
// messageService.data._id!,
|
|
120
|
+
// content.substring(0, 100)
|
|
121
|
+
// );
|
|
122
|
+
//
|
|
123
|
+
// // Emit real-time event
|
|
124
|
+
// this.eventsService.emitMessageSent(messageService.data, conversationId);
|
|
125
|
+
//
|
|
126
|
+
// return messageService.data;
|
|
127
|
+
// } catch (error) {
|
|
128
|
+
// DyFM_Log.error('Failed to sync assistant message', error);
|
|
129
|
+
// throw new DyFM_Error({
|
|
130
|
+
// ...this.getDefaultErrorSettings('syncAssistantMessage', error, issuer),
|
|
131
|
+
// errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-SAM`,
|
|
132
|
+
// userMessage: 'Failed to sync assistant message to messaging system.',
|
|
133
|
+
// });
|
|
134
|
+
// }
|
|
135
|
+
// }
|
|
136
|
+
//
|
|
137
|
+
// /**
|
|
138
|
+
// * Find or create conversation for bot channel
|
|
139
|
+
// */
|
|
140
|
+
// async findOrCreateBotConversation(
|
|
141
|
+
// channelId: string,
|
|
142
|
+
// platformSource: string,
|
|
143
|
+
// issuer: string
|
|
144
|
+
// ): Promise<DyFM_Msg_Conversation> {
|
|
145
|
+
// try {
|
|
146
|
+
// const conversationService = new DyNTS_Msg_Conversation_DataService({
|
|
147
|
+
// issuer,
|
|
148
|
+
// });
|
|
149
|
+
//
|
|
150
|
+
// // Try to find existing conversation
|
|
151
|
+
// const existingConversation = await conversationService.dataDBService.findOne({
|
|
152
|
+
// platformChannelId: channelId,
|
|
153
|
+
// platformSource,
|
|
154
|
+
// __deleted: { $exists: false },
|
|
155
|
+
// } as DyFM_DBFilter<DyFM_Msg_Conversation>);
|
|
156
|
+
//
|
|
157
|
+
// if (existingConversation) {
|
|
158
|
+
// conversationService.data = existingConversation;
|
|
159
|
+
// }
|
|
160
|
+
//
|
|
161
|
+
// // Create new if not found
|
|
162
|
+
// if (!conversationService.data._id) {
|
|
163
|
+
// conversationService.data.platformChannelId = channelId;
|
|
164
|
+
// conversationService.data.platformSource = platformSource;
|
|
165
|
+
// conversationService.data.participants = [];
|
|
166
|
+
//
|
|
167
|
+
// await conversationService.saveData(conversationService.data, false, false);
|
|
168
|
+
// }
|
|
169
|
+
//
|
|
170
|
+
// return conversationService.data;
|
|
171
|
+
// } catch (error) {
|
|
172
|
+
// throw new DyFM_Error({
|
|
173
|
+
// ...this.getDefaultErrorSettings('findOrCreateBotConversation', error, issuer),
|
|
174
|
+
// errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-FCBC`,
|
|
175
|
+
// userMessage: 'Failed to find or create bot conversation.',
|
|
176
|
+
// });
|
|
177
|
+
// }
|
|
178
|
+
// }
|
|
179
|
+
//}
|
|
180
|
+
//
|
|
126
181
|
//# sourceMappingURL=msg-integration.control-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msg-integration.control-service.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_services/msg-integration.control-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"msg-integration.control-service.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_services/msg-integration.control-service.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,6 @@ export * from './_collections/msg-global-settings.const';
|
|
|
5
5
|
export * from './_collections/msg.util';
|
|
6
6
|
export * from './_services/msg-conversation.data-service';
|
|
7
7
|
export * from './_services/msg-events.service';
|
|
8
|
-
export * from './_services/msg-integration.control-service';
|
|
9
8
|
export * from './_services/msg-main.control-service';
|
|
10
9
|
export * from './_services/msg-message.data-service';
|
|
11
10
|
export * from './_services/msg.controller';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAC;AAGhD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AAMxC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAC;AAGhD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AAMxC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAE/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC"}
|
|
@@ -21,7 +21,7 @@ tslib_1.__exportStar(require("./_collections/msg.util"), exports);
|
|
|
21
21
|
// SERVICES
|
|
22
22
|
tslib_1.__exportStar(require("./_services/msg-conversation.data-service"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./_services/msg-events.service"), exports);
|
|
24
|
-
|
|
24
|
+
/* export * from './_services/msg-integration.control-service'; */
|
|
25
25
|
tslib_1.__exportStar(require("./_services/msg-main.control-service"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./_services/msg-message.data-service"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./_services/msg.controller"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mBAAmB;AACnB,EAAE;AACF,mEAAmE;AACnE,4CAA4C;AAC5C,wCAAwC;AACxC,EAAE;;;AAEF,uBAAuB;AACvB,0EAAgD;AAEhD,SAAS;AACT,kFAAwD;AAExD,cAAc;AACd,2FAAiE;AACjE,mFAAyD;AACzD,kEAAwC;AAExC,QAAQ;AACR,2DAA2D;AAE3D,WAAW;AACX,oFAA0D;AAC1D,yEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mBAAmB;AACnB,EAAE;AACF,mEAAmE;AACnE,4CAA4C;AAC5C,wCAAwC;AACxC,EAAE;;;AAEF,uBAAuB;AACvB,0EAAgD;AAEhD,SAAS;AACT,kFAAwD;AAExD,cAAc;AACd,2FAAiE;AACjE,mFAAyD;AACzD,kEAAwC;AAExC,QAAQ;AACR,2DAA2D;AAE3D,WAAW;AACX,oFAA0D;AAC1D,yEAA+C;AAC/C,kEAAkE;AAClE,+EAAqD;AACrD,+EAAqD;AACrD,qEAA2C"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DyFM_Array, DyFM_DataModel_Params, DyFM_DataProperties, DyFM_DBFilterSimple, DyFM_Error, DyFM_Log, DyFM_Metadata, DyFM_Async } from '@futdevpro/fsm-dynamo';
|
|
2
2
|
import { DyFM_OAI_Settings, DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
3
3
|
import { DyNTS_OAI_VectorDataService } from './oai-vector-data.service';
|
|
4
|
-
import { DyNTS_DAI_DocChunking_Util } from '
|
|
5
|
-
import { DyNTS_DAI_DocChunk, DyNTS_DAI_docChunk_dataParams } from '
|
|
6
|
-
import { DyNTS_DAI_DocChunkCompareResult } from '
|
|
7
|
-
import { DyNTS_DAI_CompareResult_Type } from '
|
|
8
|
-
import { DyNTS_DAI_DocPage } from '
|
|
9
|
-
import { DyNTS_DAI_DocPageCompareResult } from '
|
|
10
|
-
import { DyNTS_DAI_Document } from '
|
|
4
|
+
import { DyNTS_DAI_DocChunking_Util } from '../../../document-ai/_collections/dai-chunking.util';
|
|
5
|
+
import { DyNTS_DAI_DocChunk, DyNTS_DAI_docChunk_dataParams } from '../../../document-ai/_models/data-models/dai-doc-chunk.data-model';
|
|
6
|
+
import { DyNTS_DAI_DocChunkCompareResult } from '../../../document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface';
|
|
7
|
+
import { DyNTS_DAI_CompareResult_Type } from '../../../document-ai/_enums/dai-compare-result-type.enum';
|
|
8
|
+
import { DyNTS_DAI_DocPage } from '../../../document-ai/_models/data-models/dai-doc-page.data-model';
|
|
9
|
+
import { DyNTS_DAI_DocPageCompareResult } from '../../../document-ai/_models/interfaces/dai-doc-page-compare-result.interface';
|
|
10
|
+
import { DyNTS_DAI_Document } from '../../../document-ai/_models/data-models/dai-document.data-model';
|
|
11
11
|
import { DyNTS_OAI_DocumentDataService } from './oai-document.data-service';
|
|
12
12
|
import { DyNTS_OAI_DocPageDataService } from './oai-doc-page.data-service';
|
|
13
|
-
import { DyNTS_DAI_Document_Util } from '
|
|
13
|
+
import { DyNTS_DAI_Document_Util } from '../../../document-ai/_collections/dai-document.util';
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
export class DyNTS_OAI_DocChunkDataService<
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DyFM_Array, DyFM_DataModel_Params, DyFM_DBFilter, DyFM_DBFilterExpressions, DyFM_DBFilterSimple, DyFM_Error, DyFM_Log } from '@futdevpro/fsm-dynamo';
|
|
2
2
|
import { DyFM_OAI_Settings } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
3
3
|
|
|
4
|
-
import { DyNTS_DataService } from '
|
|
5
|
-
import { DyNTS_DAI_DocPageCompareResult } from '
|
|
6
|
-
import { DyNTS_DAI_DocChunking_Util } from '
|
|
7
|
-
import { DyNTS_DAI_DocChunk } from '
|
|
8
|
-
import { DyNTS_DAI_DocChunkCompareResult } from '
|
|
9
|
-
import { DyNTS_DAI_DocPage, DyNTS_DAI_docPage_dataParams } from '
|
|
10
|
-
import { DyNTS_DAI_Document, DyNTS_DAI_document_dataParams } from '
|
|
4
|
+
import { DyNTS_DataService } from '../../../../../../_services/base/data.service';
|
|
5
|
+
import { DyNTS_DAI_DocPageCompareResult } from '../../../document-ai/_models/interfaces/dai-doc-page-compare-result.interface';
|
|
6
|
+
import { DyNTS_DAI_DocChunking_Util } from '../../../document-ai/_collections/dai-chunking.util';
|
|
7
|
+
import { DyNTS_DAI_DocChunk } from '../../../document-ai/_models/data-models/dai-doc-chunk.data-model';
|
|
8
|
+
import { DyNTS_DAI_DocChunkCompareResult } from '../../../document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface';
|
|
9
|
+
import { DyNTS_DAI_DocPage, DyNTS_DAI_docPage_dataParams } from '../../../document-ai/_models/data-models/dai-doc-page.data-model';
|
|
10
|
+
import { DyNTS_DAI_Document, DyNTS_DAI_document_dataParams } from '../../../document-ai/_models/data-models/dai-document.data-model';
|
|
11
11
|
|
|
12
12
|
import { DyNTS_OAI_DocChunkDataService } from './oai-doc-chunk-data.service';
|
|
13
13
|
import { DyNTS_OAI_DocumentDataService } from './oai-document.data-service';
|
|
14
|
-
import { DyNTS_DAI_CompareResult_Type } from '
|
|
14
|
+
import { DyNTS_DAI_CompareResult_Type } from '../../../document-ai/_enums/dai-compare-result-type.enum';
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
export class DyNTS_OAI_DocPageDataService<
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DyFM_Array, DyFM_Async, DyFM_DataModel_Params, DyFM_DBFilter, DyFM_DBFilterExpressions, DyFM_DBFilterSimple, DyFM_Error, DyFM_Log } from '@futdevpro/fsm-dynamo';
|
|
2
|
-
import { DyNTS_DataService } from '
|
|
3
|
-
import { DyNTS_DAI_DocChunk } from '
|
|
4
|
-
import { DyNTS_DAI_DocPage } from '
|
|
5
|
-
import { DyNTS_DAI_Document, DyNTS_DAI_document_dataParams } from '
|
|
2
|
+
import { DyNTS_DataService } from '../../../../../../_services/base/data.service';
|
|
3
|
+
import { DyNTS_DAI_DocChunk } from '../../../document-ai/_models/data-models/dai-doc-chunk.data-model';
|
|
4
|
+
import { DyNTS_DAI_DocPage } from '../../../document-ai/_models/data-models/dai-doc-page.data-model';
|
|
5
|
+
import { DyNTS_DAI_Document, DyNTS_DAI_document_dataParams } from '../../../document-ai/_models/data-models/dai-document.data-model';
|
|
6
6
|
import { DyNTS_OAI_DocChunkDataService } from './oai-doc-chunk-data.service';
|
|
7
7
|
import { DyNTS_OAI_DocPageDataService } from './oai-doc-page.data-service';
|
|
8
8
|
import { DyFM_OAI_Settings } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
9
|
-
import { DyNTS_DAI_DocumentCompareResult } from '
|
|
10
|
-
import { DyNTS_DAI_DocPageCompareResult } from '
|
|
11
|
-
import { DyNTS_DAI_CompareResult_Type } from '
|
|
9
|
+
import { DyNTS_DAI_DocumentCompareResult } from '../../../document-ai/_models/interfaces/dai-document-compare-result.interface';
|
|
10
|
+
import { DyNTS_DAI_DocPageCompareResult } from '../../../document-ai/_models/interfaces/dai-doc-page-compare-result.interface';
|
|
11
|
+
import { DyNTS_DAI_CompareResult_Type } from '../../../document-ai/_enums/dai-compare-result-type.enum';
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
export class DyNTS_OAI_DocumentDataService<
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from '@futdevpro/fsm-dynamo';
|
|
12
12
|
import { DyFM_OAI_Settings, DyFM_OAI_EmbeddingModel, DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
13
13
|
|
|
14
|
-
import { DyNTS_global_settings } from '
|
|
15
|
-
import { DyNTS_DataService } from '
|
|
16
|
-
import { DyNTS_OAI_Embedding_ControlService } from '
|
|
17
|
-
import { DyNTS_OAI_global_settings } from '
|
|
14
|
+
import { DyNTS_global_settings } from '../../../../../../_collections/global-settings.const';
|
|
15
|
+
import { DyNTS_DataService } from '../../../../../../_services/base/data.service';
|
|
16
|
+
import { DyNTS_OAI_Embedding_ControlService } from '../oai-embedding.control-service';
|
|
17
|
+
import { DyNTS_OAI_global_settings } from '../../_collections/oai-global-settings.const';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Vector Data Service that is connected to the relevant DBServices
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
1
|
+
import { DyFM_OAI_Model, DyFM_OAI_EmbeddingModelDimensions } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
2
2
|
import { DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
3
|
+
import { DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
4
|
+
import { DyFM_DAI_EmbeddingInfo } from '@futdevpro/fsm-dynamo/ai/document-ai';
|
|
3
5
|
|
|
4
6
|
import { DyNTS_OAI_LLM_ServiceBase } from './oai-llm.service-base';
|
|
5
7
|
import { DyNTS_global_settings } from '../../../../../_collections/global-settings.const';
|
|
6
8
|
import { DyNTS_AI_Embedding_ServiceBase } from '../../../_services/ai-embedding.service-base';
|
|
7
9
|
|
|
8
|
-
export class DyNTS_OAI_Embedding_ControlService extends DyNTS_OAI_LLM_ServiceBase
|
|
10
|
+
export class DyNTS_OAI_Embedding_ControlService extends DyNTS_OAI_LLM_ServiceBase implements DyNTS_AI_Embedding_ServiceBase {
|
|
9
11
|
|
|
10
12
|
async createEmbedding(
|
|
11
13
|
text: string,
|
|
@@ -64,4 +66,18 @@ export class DyNTS_OAI_Embedding_ControlService extends DyNTS_OAI_LLM_ServiceBas
|
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Visszaadja az embedding model információkat
|
|
72
|
+
*
|
|
73
|
+
* Returns embedding model information
|
|
74
|
+
*/
|
|
75
|
+
getEmbeddingInfo(model: string): DyFM_DAI_EmbeddingInfo {
|
|
76
|
+
const dimensions = DyFM_OAI_EmbeddingModelDimensions[model as keyof typeof DyFM_OAI_EmbeddingModelDimensions];
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
provider: DyFM_AI_Provider.OpenAI,
|
|
80
|
+
model: model
|
|
81
|
+
};
|
|
82
|
+
}
|
|
67
83
|
}
|