listClassifiers()
The listClassifiers() method returns all classifiers that have been registered with the Mastra instance, keyed by registration key.
Usage exampleUsage example的直接链接
import { mastra } from './mastra'
const classifiers = mastra.listClassifiers()
for (const [key, classifier] of Object.entries(classifiers)) {
console.log(key, classifier.id)
}
ReturnsReturns的直接链接
classifiers:
Record<string, Classifier>
All registered classifiers keyed by registration key.
RelatedRelated的直接链接
- getClassifier(): Get a classifier by its registration key
- getClassifierById(): Get a classifier by its id property
- Classifier