@venturialstd/workflow 0.1.162 → 0.1.164
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/dist/dtos/create-workflow-canvas-element.dto.d.ts +13 -0
- package/dist/dtos/create-workflow-canvas-element.dto.d.ts.map +1 -0
- package/dist/dtos/create-workflow-canvas-element.dto.js +61 -0
- package/dist/dtos/create-workflow-canvas-element.dto.js.map +1 -0
- package/dist/dtos/index.d.ts +1 -0
- package/dist/dtos/index.d.ts.map +1 -1
- package/dist/dtos/index.js +1 -0
- package/dist/dtos/index.js.map +1 -1
- package/dist/entities/workflow-canvas-element.entity.d.ts +21 -0
- package/dist/entities/workflow-canvas-element.entity.d.ts.map +1 -0
- package/dist/entities/workflow-canvas-element.entity.js +100 -0
- package/dist/entities/workflow-canvas-element.entity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
- package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
- package/dist/modules/chatbot/actions/index.d.ts +4 -0
- package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/index.js +20 -0
- package/dist/modules/chatbot/actions/index.js.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
- package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
- package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
- package/dist/modules/chatbot/actions/send-message.action.js +52 -0
- package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
- package/dist/modules/chatbot/chatbot-nest.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot-nest.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot-nest.module.js +21 -0
- package/dist/modules/chatbot/chatbot-nest.module.js.map +1 -0
- package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
- package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
- package/dist/modules/chatbot/chatbot.module.js +17 -0
- package/dist/modules/chatbot/chatbot.module.js.map +1 -0
- package/dist/modules/chatbot/credentials.d.ts +3 -0
- package/dist/modules/chatbot/credentials.d.ts.map +1 -0
- package/dist/modules/chatbot/credentials.js +5 -0
- package/dist/modules/chatbot/credentials.js.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
- package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/ask-question.service.js +25 -0
- package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
- package/dist/modules/chatbot/services/index.d.ts +5 -0
- package/dist/modules/chatbot/services/index.d.ts.map +1 -0
- package/dist/modules/chatbot/services/index.js +21 -0
- package/dist/modules/chatbot/services/index.js.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
- package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
- package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/send-message.service.js +27 -0
- package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
- package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
- package/dist/modules/chatbot/services/user-responded.service.js +25 -0
- package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
- package/dist/modules/chatbot/triggers/index.d.ts +2 -0
- package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/index.js +18 -0
- package/dist/modules/chatbot/triggers/index.js.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
- package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
- package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/chat-completion.action.js +27 -109
- package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts +3 -0
- package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts.map +1 -0
- package/dist/modules/chatgpt/actions/chat-purpose.action.js +229 -0
- package/dist/modules/chatgpt/actions/chat-purpose.action.js.map +1 -0
- package/dist/modules/chatgpt/actions/create-embedding.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/create-embedding.action.js +10 -16
- package/dist/modules/chatgpt/actions/create-embedding.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/generate-image.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/generate-image.action.js +19 -35
- package/dist/modules/chatgpt/actions/generate-image.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/index.d.ts +1 -0
- package/dist/modules/chatgpt/actions/index.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/index.js +1 -0
- package/dist/modules/chatgpt/actions/index.js.map +1 -1
- package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/speech-to-text.action.js +18 -31
- package/dist/modules/chatgpt/actions/speech-to-text.action.js.map +1 -1
- package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts.map +1 -1
- package/dist/modules/chatgpt/actions/text-to-speech.action.js +15 -32
- package/dist/modules/chatgpt/actions/text-to-speech.action.js.map +1 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts +3 -0
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js +33 -36
- package/dist/modules/chatgpt/auth/chatgpt-auth.service.js.map +1 -1
- package/dist/modules/chatgpt/auth/index.d.ts +2 -0
- package/dist/modules/chatgpt/auth/index.d.ts.map +1 -0
- package/dist/modules/chatgpt/auth/index.js +6 -0
- package/dist/modules/chatgpt/auth/index.js.map +1 -0
- package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt-nest.module.js +9 -6
- package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -1
- package/dist/modules/chatgpt/chatgpt.module.js +3 -2
- package/dist/modules/chatgpt/chatgpt.module.js.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts +2 -4
- package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -1
- package/dist/modules/chatgpt/services/chat-completion.service.js +21 -100
- package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -1
- package/dist/modules/chatgpt/services/chat-purpose.service.d.ts +24 -0
- package/dist/modules/chatgpt/services/chat-purpose.service.d.ts.map +1 -0
- package/dist/modules/chatgpt/services/chat-purpose.service.js +396 -0
- package/dist/modules/chatgpt/services/chat-purpose.service.js.map +1 -0
- package/dist/modules/chatgpt/services/index.d.ts +1 -0
- package/dist/modules/chatgpt/services/index.d.ts.map +1 -1
- package/dist/modules/chatgpt/services/index.js +1 -0
- package/dist/modules/chatgpt/services/index.js.map +1 -1
- package/dist/modules/chatgpt/types/purpose-memory.types.d.ts +38 -0
- package/dist/modules/chatgpt/types/purpose-memory.types.d.ts.map +1 -0
- package/dist/modules/chatgpt/types/purpose-memory.types.js +28 -0
- package/dist/modules/chatgpt/types/purpose-memory.types.js.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts +5 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.js +15 -0
- package/dist/modules/chatgpt/utils/purpose-cache-key.util.js.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts +2 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts.map +1 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.js +34 -0
- package/dist/modules/chatgpt/utils/purpose-schema.validator.js.map +1 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.d.ts +7 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.d.ts.map +1 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.js +20 -0
- package/dist/modules/chatgpt/utils/token-estimate.util.js.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +5 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/services/workflow-canvas-element.service.d.ts +15 -0
- package/dist/services/workflow-canvas-element.service.d.ts.map +1 -0
- package/dist/services/workflow-canvas-element.service.js +67 -0
- package/dist/services/workflow-canvas-element.service.js.map +1 -0
- package/dist/services/workflow-sse.service.d.ts +4 -1
- package/dist/services/workflow-sse.service.d.ts.map +1 -1
- package/dist/services/workflow-sse.service.js +8 -0
- package/dist/services/workflow-sse.service.js.map +1 -1
- package/dist/workflow-core.module.d.ts.map +1 -1
- package/dist/workflow-core.module.js +5 -0
- package/dist/workflow-core.module.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +3 -0
- package/dist/workflow.module.js.map +1 -1
- package/package.json +119 -118
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts +0 -4
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts.map +0 -1
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js +0 -32
- package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CHATGPT_COMPLETION_CONSTANTS = void 0;
|
|
4
|
-
exports.CHATGPT_COMPLETION_CONSTANTS = {
|
|
5
|
-
SYSTEM_INSTRUCTIONS: `You are a helpful AI assistant. Your responses MUST be in JSON format WITHOUT markdown, just the raw JSON.
|
|
6
|
-
IMPORTANT RULES:
|
|
7
|
-
- Always respond in valid JSON format
|
|
8
|
-
- Do NOT use markdown code blocks (no \`\`\`json\`\`\`)
|
|
9
|
-
- The response must be a JSON object with the following structure:
|
|
10
|
-
- You will ask the user for their name, email, phone, and status.
|
|
11
|
-
- You will then extract the data from the user's response and store it in the "output" field.
|
|
12
|
-
- You will then return the JSON object with the "event" field set to "IN_PROGRESS" and the "output" field containing the data.
|
|
13
|
-
- You will ask again till the user fill all the fields.
|
|
14
|
-
- If the user responds with "END", you will set the "event" field to "END" and return the JSON object.
|
|
15
|
-
- If the user responds with something else, you will set the "event" field to "IN_PROGRESS", ask again the missing fields and return the JSON object.
|
|
16
|
-
- If the user responds correctly all the fields, you will set the "event" field to "END" and return the JSON object.
|
|
17
|
-
{
|
|
18
|
-
"event": "IN_PROGRESS" | "END",
|
|
19
|
-
"aiMessage": "Your response message here",
|
|
20
|
-
"output": {
|
|
21
|
-
"name": "John Doe",
|
|
22
|
-
"email": "john@example.com",
|
|
23
|
-
"phone": "+1234567890",
|
|
24
|
-
"status": "active"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
- The "event" field indicates conversation state: "IN_PROGRESS" for ongoing, "END" for completed
|
|
28
|
-
- The "aiMessage" field contains your response to the user
|
|
29
|
-
- The "output" field contains structured data extracted from the conversation
|
|
30
|
-
- Use placeholder values when data is not available (e.g., "N/A", "pending", "unknown")`,
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=chatgpt-completion.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt-completion.constants.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/constants/chatgpt-completion.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG;IACxC,mBAAmB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;gGAyBuE;CAClF,CAAC"}
|