From b534606bb0ad850924675760adee3effd4b53d4a Mon Sep 17 00:00:00 2001 From: jie65535 Date: Thu, 21 Aug 2025 13:54:46 +0800 Subject: [PATCH] Update runCode tool description --- src/main/kotlin/tools/RunCode.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/tools/RunCode.kt b/src/main/kotlin/tools/RunCode.kt index 614442c..1d7bf9b 100644 --- a/src/main/kotlin/tools/RunCode.kt +++ b/src/main/kotlin/tools/RunCode.kt @@ -11,7 +11,8 @@ import top.jie65535.mirai.PluginConfig class RunCode : BaseAgent( tool = Tool.function( name = "runCode", - description = "执行代码,请尽量避免需要运行时输入或可能导致死循环的代码!", + description = "运行目标代码,请尽量避免需要运行时输入或可能导致死循环的代码!" + + "注意,这些代码对用户不可见,如果用户要求展示代码,你应该直接发送相关代码而不是执行。", parameters = Parameters.buildJsonObject { put("type", "object") putJsonObject("properties") {