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:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user