@mastra/client-js 1.50.0 → 1.51.0-alpha.0

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.js CHANGED
@@ -983,12 +983,13 @@ var Agent = class extends BaseResource {
983
983
  * @experimental Agent signals are experimental and may change in a future release.
984
984
  */
985
985
  async subscribeToThread(params) {
986
- const { resourceId, threadId } = params;
986
+ const { resourceId, threadId, withInitialHistory } = params;
987
987
  const requestSubscription = () => this.request(`/agents/${this.agentId}/threads/subscribe`, {
988
988
  method: "POST",
989
989
  body: {
990
990
  resourceId,
991
- threadId
991
+ threadId,
992
+ ...withInitialHistory ? { withInitialHistory } : {}
992
993
  },
993
994
  stream: true
994
995
  });