eric-sdk 0.0.4 → 0.0.5

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.cjs CHANGED
@@ -91,7 +91,8 @@ var EricSDK = class {
91
91
  flow: "decisionRouter",
92
92
  data: {
93
93
  ...rest,
94
- client: this.client
94
+ client: this.client,
95
+ text: rest.text ?? "implicit_intent"
95
96
  }
96
97
  };
97
98
  if (requestType) {
package/dist/index.d.cts CHANGED
@@ -15,7 +15,7 @@ declare class EricSDK {
15
15
  constructor(options: EricClientOptions);
16
16
  call(flowName: string, data: any): Promise<EricResponse>;
17
17
  decide(data: {
18
- text: string;
18
+ text?: string;
19
19
  topic?: string;
20
20
  requestType?: string;
21
21
  userState?: any;
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ declare class EricSDK {
15
15
  constructor(options: EricClientOptions);
16
16
  call(flowName: string, data: any): Promise<EricResponse>;
17
17
  decide(data: {
18
- text: string;
18
+ text?: string;
19
19
  topic?: string;
20
20
  requestType?: string;
21
21
  userState?: any;
package/dist/index.js CHANGED
@@ -35,7 +35,8 @@ var EricSDK = class {
35
35
  flow: "decisionRouter",
36
36
  data: {
37
37
  ...rest,
38
- client: this.client
38
+ client: this.client,
39
+ text: rest.text ?? "implicit_intent"
39
40
  }
40
41
  };
41
42
  if (requestType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eric-sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Official SDK for interacting with the Eric AI Policy Engine",
5
5
  "author": "Rod Bridges",
6
6
  "license": "MIT",
package/src/client.ts CHANGED
@@ -52,7 +52,7 @@ export class EricSDK {
52
52
  * 2) DECIDE — agentic routing with optional allowedFlows
53
53
  * ------------------------------------------------------------- */
54
54
  async decide(data: {
55
- text: string;
55
+ text?: string;
56
56
  topic?: string;
57
57
  requestType?: string;
58
58
  userState?: any;
@@ -65,6 +65,7 @@ export class EricSDK {
65
65
  data: {
66
66
  ...rest,
67
67
  client: this.client,
68
+ text: rest.text ?? "implicit_intent",
68
69
  }
69
70
  };
70
71