@mastra/client-js 1.3.0-alpha.1 → 1.3.0-alpha.3

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
@@ -4505,6 +4505,24 @@ var MastraClient = class extends BaseResource {
4505
4505
  `/memory/observational-memory?${queryString}${requestContextQueryString(params.requestContext, "&")}`
4506
4506
  );
4507
4507
  }
4508
+ /**
4509
+ * Blocks until any in-flight observational memory buffering completes, then returns the updated record
4510
+ * @param params - Parameters containing agentId, resourceId, threadId
4511
+ * @returns Promise containing the updated OM record after buffering completes
4512
+ */
4513
+ awaitBufferStatus(params) {
4514
+ return this.request(
4515
+ `/memory/observational-memory/buffer-status${requestContextQueryString(params.requestContext)}`,
4516
+ {
4517
+ method: "POST",
4518
+ body: {
4519
+ agentId: params.agentId,
4520
+ resourceId: params.resourceId,
4521
+ threadId: params.threadId
4522
+ }
4523
+ }
4524
+ );
4525
+ }
4508
4526
  /**
4509
4527
  * Retrieves all available tools
4510
4528
  * @param requestContext - Optional request context to pass as query parameter