@mastra/client-js 1.52.0-alpha.6 → 1.52.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
@@ -6419,15 +6419,17 @@ var AgentControllerSession = class extends BaseResource {
6419
6419
  body: { modeId }
6420
6420
  });
6421
6421
  }
6422
- /** Switch the model. Defaults to thread scope. */
6423
- async switchModel(modelId, options) {
6422
+ /**
6423
+ * Switch the session model and persist it to the active thread. When
6424
+ * `thinkingLevel` is provided it is applied and persisted with the model.
6425
+ */
6426
+ async switchModel(modelId, { thinkingLevel } = {}) {
6424
6427
  await this.request(this.url(`${this.base()}/model`), {
6425
6428
  method: "POST",
6426
- body: {
6429
+ body: thinkingLevel !== void 0 ? {
6427
6430
  modelId,
6428
- scope: options?.scope,
6429
- modeId: options?.modeId
6430
- }
6431
+ thinkingLevel
6432
+ } : { modelId }
6431
6433
  });
6432
6434
  }
6433
6435
  /**