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