Agent.getDescription()
.getDescription() 方法用于获取为代理配置的描述。此方法返回一个简单的字符串描述,用于说明代理的目的和功能。
🌐 The .getDescription() method retrieves the description configured for an agent. This method returns a simple string description that describes the agent's purpose and capabilities.
使用示例Direct link to 使用示例
🌐 Usage example
agent.getDescription();
参数Direct link to 参数
🌐 Parameters
此方法不接受任何参数。
🌐 This method takes no parameters.
返回Direct link to 返回
🌐 Returns
description:
string
The description of the agent, or an empty string if no description was configured.
相关Direct link to 相关
🌐 Related