@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 +10 -5
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
655
|
+
include_business_trace: true,
|
|
656
|
+
include_context_trace: true
|
|
652
657
|
});
|
|
653
658
|
|
|
654
659
|
console.log('Agent Response:', message.text);
|
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
49
|
-
"User-Agent": "@aui.io/aui-client/1.2.
|
|
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) });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.40";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
13
|
-
"User-Agent": "@aui.io/aui-client/1.2.
|
|
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) });
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.40";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.2.
|
|
1
|
+
export const SDK_VERSION = "1.2.40";
|