@aui.io/aui-client 1.2.39 → 1.2.40

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/README.md CHANGED
@@ -274,7 +274,8 @@ const messageResponse = await client.controllerApi.sendMessage({
274
274
  task_id: string, // Task identifier
275
275
  text?: string, // Message text (optional in v1.2.36+)
276
276
  is_external_api?: boolean, // Optional: mark as external API call
277
- include_trace_info?: boolean, // Optional: include trace/debug info in response (NEW in v1.2.35)
277
+ include_business_trace?: boolean, // Optional: include NLU/understanding + business decisions in trace_info (NEW in v1.2.37; replaces include_trace_info)
278
+ include_context_trace?: boolean, // Optional: include context section + call_integration decisions in trace_info (NEW in v1.2.37; replaces include_trace_info)
278
279
  context?: { // Optional: additional context
279
280
  url?: string,
280
281
  lead_details?: Record<string, any>,
@@ -339,12 +340,14 @@ const traceInfo = await client.controllerApi.getTraceInfo('your-task-id', 'your-
339
340
  **Example:**
340
341
 
341
342
  ```typescript
342
- // First, send a message with trace info enabled
343
+ // First, send a message with trace info enabled.
344
+ // Note: `include_trace_info` was replaced in v1.2.39 by two granular flags.
343
345
  const message = await client.controllerApi.sendMessage({
344
346
  task_id: 'your-task-id',
345
347
  text: 'What products do you recommend?',
346
348
  is_external_api: true,
347
- include_trace_info: true
349
+ include_business_trace: true,
350
+ include_context_trace: true
348
351
  });
349
352
 
350
353
  // Then retrieve the full trace info for that message
@@ -643,12 +646,14 @@ const client = new ApolloClient({
643
646
 
644
647
  async function debugAgentResponse(taskId: string) {
645
648
  try {
646
- // Send a message with trace info enabled
649
+ // Send a message with trace info enabled.
650
+ // `include_trace_info` was replaced with the two flags below in v1.2.37.
647
651
  const message = await client.controllerApi.sendMessage({
648
652
  task_id: taskId,
649
653
  text: 'What products do you recommend?',
650
654
  is_external_api: true,
651
- include_trace_info: true
655
+ include_business_trace: true,
656
+ include_context_trace: true
652
657
  });
653
658
 
654
659
  console.log('Agent Response:', message.text);
@@ -45,8 +45,8 @@ class ApolloClient {
45
45
  "x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
46
46
  "X-Fern-Language": "JavaScript",
47
47
  "X-Fern-SDK-Name": "@aui.io/aui-client",
48
- "X-Fern-SDK-Version": "1.2.39",
49
- "User-Agent": "@aui.io/aui-client/1.2.39",
48
+ "X-Fern-SDK-Version": "1.2.40",
49
+ "User-Agent": "@aui.io/aui-client/1.2.40",
50
50
  "X-Fern-Runtime": core.RUNTIME.type,
51
51
  "X-Fern-Runtime-Version": core.RUNTIME.version,
52
52
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.39";
1
+ export declare const SDK_VERSION = "1.2.40";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.39";
4
+ exports.SDK_VERSION = "1.2.40";
@@ -9,8 +9,8 @@ export class ApolloClient {
9
9
  "x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
10
10
  "X-Fern-Language": "JavaScript",
11
11
  "X-Fern-SDK-Name": "@aui.io/aui-client",
12
- "X-Fern-SDK-Version": "1.2.39",
13
- "User-Agent": "@aui.io/aui-client/1.2.39",
12
+ "X-Fern-SDK-Version": "1.2.40",
13
+ "User-Agent": "@aui.io/aui-client/1.2.40",
14
14
  "X-Fern-Runtime": core.RUNTIME.type,
15
15
  "X-Fern-Runtime-Version": core.RUNTIME.version,
16
16
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.39";
1
+ export declare const SDK_VERSION = "1.2.40";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.2.39";
1
+ export const SDK_VERSION = "1.2.40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/aui-client",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "private": false,
5
5
  "repository": "github:aui-io/aui-client-typescript",
6
6
  "type": "commonjs",