jsfe 0.9.21 → 0.9.22
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2256,7 +2256,7 @@ async function getFlowForInput(input, engine) {
|
|
|
2256
2256
|
- Return "None" if no workflow applies
|
|
2257
2257
|
- Consider user intent and the chat context
|
|
2258
2258
|
- Prioritize the most relevant flow considering all available flows
|
|
2259
|
-
-
|
|
2259
|
+
- Flows should only be triggered in response to explicit user intent. A user prompt asking about available credit should trigger balance flows when available, but not payment flows. Complaints about a charge must not trigger a payment flow. Imagine the frustration of a user asking any question other than "Can I make a payment?" and being forwarded to a payment flow instead of receiving a direct answer.
|
|
2260
2260
|
`;
|
|
2261
2261
|
// Use chat context when not in a flow (this is where lastChatTurn context is relevant)
|
|
2262
2262
|
let context = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsfe",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.22",
|
|
4
4
|
"description": "TypeScript workflow engine for conversational/automation apps: multi-flow orchestration, interrupt/resume, stack-based control, robust errors, and flexible tool/REST integration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ron Pinkas",
|