> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-HK/llms.txt # listScorers() `listScorers()` 方法傳回所有已在 Mastra 實例註冊的評分器。評分器用於評估 AI 輸出,並可在 Agent 生成或 Workflow 執行期間覆寫預設評分器。 ## 使用範例 ```typescript import { mastra } from './mastra' // Get all registered scorers const allScorers = mastra.listScorers() // Access a specific scorer const myScorer = allScorers.relevancyScorer ``` ## 參數 此方法不接受任何參數。 ## 傳回值 **scorers** (`Record | undefined`): 包含所有已註冊評分器的物件,其中鍵是評分器名稱,值是 MastraScorer 實例。如沒有已註冊的評分器,則傳回 undefined。 ## 相關內容 - [getScorer()](https://mastra.zisheng.pro/zh-HK/reference/core/getScorer):按鍵取得指定評分器 - [getScorerById()](https://mastra.zisheng.pro/zh-HK/reference/core/getScorerById):按評分器的 id 屬性取得評分器 - [評分器概覽](https://mastra.zisheng.pro/zh-HK/docs/evals/overview):了解如何建立及使用評分器