@agents24/node 0.5.16 → 0.5.17
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/compatibility.json +5 -5
- package/dist/bff.cjs +9 -3
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.js +9 -3
- package/dist/bff.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -280,7 +280,7 @@ var AgentsNamespace = class {
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
async stream(agentId, payload, onEvent, mode, options = {}) {
|
|
283
|
-
const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode }), {
|
|
283
|
+
const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode, stream_features: "assistant-completion-v1" }), {
|
|
284
284
|
method: "POST",
|
|
285
285
|
headers: this.http.streamHeaders(),
|
|
286
286
|
body: JSON.stringify(payload),
|
|
@@ -524,7 +524,7 @@ var EmbedNamespace = class {
|
|
|
524
524
|
return this.stream(`/public/embed/agents/${agentId}/runs/${runId}/stream`, payload, onEvent, options);
|
|
525
525
|
}
|
|
526
526
|
async stream(path, payload, onEvent, options) {
|
|
527
|
-
const response = await this.http.fetchOrThrow(this.http.url(path), {
|
|
527
|
+
const response = await this.http.fetchOrThrow(this.http.url(path, { stream_features: "assistant-completion-v1" }), {
|
|
528
528
|
method: "POST",
|
|
529
529
|
headers: this.http.streamHeaders(void 0, options, true),
|
|
530
530
|
body: JSON.stringify(payload),
|