@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/dist/index.cjs CHANGED
@@ -281,7 +281,7 @@ var AgentsNamespace = class {
281
281
  });
282
282
  }
283
283
  async stream(agentId, payload, onEvent, mode, options = {}) {
284
- const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode }), {
284
+ const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode, stream_features: "assistant-completion-v1" }), {
285
285
  method: "POST",
286
286
  headers: this.http.streamHeaders(),
287
287
  body: JSON.stringify(payload),
@@ -525,7 +525,7 @@ var EmbedNamespace = class {
525
525
  return this.stream(`/public/embed/agents/${agentId}/runs/${runId}/stream`, payload, onEvent, options);
526
526
  }
527
527
  async stream(path, payload, onEvent, options) {
528
- const response = await this.http.fetchOrThrow(this.http.url(path), {
528
+ const response = await this.http.fetchOrThrow(this.http.url(path, { stream_features: "assistant-completion-v1" }), {
529
529
  method: "POST",
530
530
  headers: this.http.streamHeaders(void 0, options, true),
531
531
  body: JSON.stringify(payload),