Skip to main content

listClassifiers()

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

Usage example
Direct 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)
}

Returns
Direct link to Returns

classifiers:

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