> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-HK/llms.txt # Agent.getDescription() `.getDescription()` 方法會取得為 Agent 設定的描述。此方法會傳回一個字串描述,說明 Agent 的用途及能力。 ## 使用範例 ```typescript agent.getDescription() ``` ## 參數 此方法不接受任何參數。 ## 傳回值 **description** (`string`): Agent 的描述;如未設定描述,則為空字串。 ## 相關內容 - [Agent 概覽](https://mastra.zisheng.pro/zh-HK/docs/agents/overview)