> Discover all available pages from the documentation index: https://mastra.zisheng.pro/llms.txt # listScorers() `listScorers()` 方法返回 Mastra 实例中注册的所有 Scorer。Scorer 用于评估 AI 输出,并可在 Agent 生成或 Workflow 执行期间覆盖默认 Scorer。 ## 使用示例 ```typescript import { mastra } from './mastra' // Get all registered scorers const allScorers = mastra.listScorers() // Access a specific scorer const myScorer = allScorers.relevancyScorer ``` ## 参数 此方法不接受任何参数。 ## 返回值 **scorers** (`Record | undefined`): 包含所有已注册 Scorer 的对象,其中键为 Scorer 名称,值为 MastraScorer 实例。如果未注册 Scorer,则返回 undefined。 ## 相关内容 - [getScorer()](https://mastra.zisheng.pro/reference/core/getScorer): 按键获取指定 Scorer - [getScorerById()](https://mastra.zisheng.pro/reference/core/getScorerById): 按 id 属性获取 Scorer - [Scorer 概览](https://mastra.zisheng.pro/docs/evals/overview): 了解如何创建和使用 Scorer