fix(tools): add get_required_config_parameters to OpenClawTool

Without this method, the tool status would show as available even when
server_url and api_key are not configured.
This commit is contained in:
miao
2026-04-10 18:47:31 +08:00
parent 8497c955f9
commit 0f28d54c43

View File

@@ -46,6 +46,9 @@ class OpenClawTool(BuiltinTool):
"Shell 命令执行、网络搜索等能力。支持文本和图片多模态交互。"
)
def get_required_config_parameters(self) -> List[str]:
return ["server_url", "api_key"]
@property
def parameters(self) -> List[ToolParameter]:
return [