jsfe 0.9.68 → 0.9.70

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 (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2396,7 +2396,7 @@ export async function detectFlowWithParameters(input, engine) {
2396
2396
  - Consider user intent and the chat context
2397
2397
  - Prioritize the most relevant flow considering all available flows
2398
2398
  - 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.
2399
- - Extract parameters only if they are explicitly present in the user input.
2399
+ - The "parameters" object is always required in the response. Extract parameter values from the user input when explicitly present. Return an empty object {} when no parameters are found.
2400
2400
  `;
2401
2401
  const jsonSchema = JSON.stringify({
2402
2402
  type: "json_schema",
@@ -2409,7 +2409,7 @@ export async function detectFlowWithParameters(input, engine) {
2409
2409
  flowName: { type: "string" },
2410
2410
  parameters: { type: "object" }
2411
2411
  },
2412
- required: ["flowName"]
2412
+ required: ["flowName", "parameters"]
2413
2413
  }
2414
2414
  }
2415
2415
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsfe",
3
- "version": "0.9.68",
3
+ "version": "0.9.70",
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",