From 6db8c38c582b39ade8b09b4e40460ec5bd71865f Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 11 Sep 2024 15:38:08 +0800 Subject: [PATCH] chore: remove agent function of helloworld plugin --- addons/plugins/helloworld/main.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/addons/plugins/helloworld/main.py b/addons/plugins/helloworld/main.py index 25f8e6974..56eb99162 100644 --- a/addons/plugins/helloworld/main.py +++ b/addons/plugins/helloworld/main.py @@ -21,14 +21,6 @@ class HelloWorldPlugin: def __init__(self, context: Context) -> None: self.context = context self.context.register_commands("helloworld", "helloworld", "内置测试指令。", 1, self.helloworld) - self.context.register_llm_tool("welcome_somebody", [{ - "type": "string", - "name": "name", - "description": "要欢迎的人的名字" - }], "给一个用户发送欢迎文本。", self.welcome_somebody) - - async def welcome_somebody(self, name: str): - return CommandResult().message(f"欢迎{name}!") """ 指令处理函数。