@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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-client-js-agents.md +2 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/route-types.generated.d.ts +33 -29
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +10 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
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
|
});
|