跳到主要内容
非官方简体中文翻译,内容版权归 Mastra 所有,遵循 Apache-2.0 许可。

listClassifiers()

The listClassifiers() method returns all classifiers that have been registered with the Mastra instance, keyed by registration key.

Usage example
Usage example的直接链接

import { mastra } from './mastra'

const classifiers = mastra.listClassifiers()

for (const [key, classifier] of Object.entries(classifiers)) {
console.log(key, classifier.id)
}

Returns
Returns的直接链接

classifiers:

Record<string, Classifier>
All registered classifiers keyed by registration key.
On this page