referenceCore.setStorage()本页总览Mastra.setStorage() .setStorage() 方法用于设置 Mastra 实例的 Storage 实例。此方法接受一个 MastraCompositeStore 参数。 使用示例使用示例的直接链接 mastra.setStorage( new LibSQLStore({ id: 'mastra-storage', url: ':memory:', }),) 参数参数的直接链接 storage:MastraCompositeStore要为 Mastra 实例设置的 Storage 实例。 返回值返回值的直接链接 此方法没有返回值。 相关内容相关内容的直接链接 Storage 概览 Storage 参考