Install
openclaw skills install generic-drug查询药品名称对应的通用名,若无结果则返回原名称,基于本地 SearXNG 搜索结果智能分析识别。
openclaw skills install generic-drug通过搜索查询药品的通用名。当用户提供药品名称时,尝试查询其通用名。
# 查询药品通用名
~/.openclaw/workspace/skills/generic_drug/tool.sh <药品名称>
# 示例
~/.openclaw/workspace/skills/generic_drug/tool.sh 乳膏基质一号
~/.openclaw/workspace/skills/generic_drug/tool.sh 头孢克洛胶囊
<药品名称> 药品通用名脚本返回 JSON 格式(包含原始搜索结果):
{
"drug_name": "药品原始名称",
"search_count": 搜索结果数量,
"search_context": "格式化后的搜索结果摘要",
"note": "需要 LLM 分析"
}
LLM 最终输出格式:
{
"drug_name": "药品原始名称",
"generic_name": "智能识别的通用名",
"found": true/false,
"type": "非药品(可选)",
"note": "LLM 智能识别/未找到/非药品"
}
http://localhost:8080<query> 药品通用名# 查询"乳膏基质一号"
$ generic_drug 乳膏基质一号
{
"drug_name": "乳膏基质一号",
"generic_name": "乳膏基质一号",
"found": true,
"note": "未找到其他通用名,原名称即为通用名"
}
# 查询"头孢克洛胶囊"
$ generic_drug 头孢克洛胶囊
{
"drug_name": "头孢克洛胶囊",
"generic_name": "头孢克洛",
"found": true,
"note": "查得通用名为:头孢克洛"
}