Install
openclaw skills install deepevidence循证医学临床助手,采用 DeepEvidence 兼容 OpenAI 的 API(可追溯引用)。 用于解答复杂的临床问题、药物安全性证据、指南解读等。
openclaw skills install deepevidenceThis skill calls DeepEvidence's OpenAI-compatible API to produce traceable, source-grounded evidence summaries for clinical use cases (drug safety, guideline interpretation, trial evidence synthesis). All outputs should be clinically verified before use.
Bundled repository files required: the default workflow references local
scripts/andreferences/files. If your hosting/distribution does not ship them, use the direct HTTP API method below.
scripts/: Contains the interaction logic for medical Q&A and user-facing CLI tools.references/: Contains the API interface specifications and technical constraints mapping.SKILL.md: Root configuration and normative guidelines for the medical assistant.To avoid ambiguity, treat requirement levels as:
DeepEvidence, evidence-based medicine, guideline interpretation, drug safety evidence, clinical trial evidenceAsk the user to set an API key via environment variable:
DEEPEVIDENCE_API_KEY (企业用户请在此申请: https://app.medsci.cn/platform/api-keys)This skill is not for emergency triage or first-aid instructions. If the user describes or asks about (including but not limited to):
You MUST prioritize advising the user to contact local emergency services / seek immediate medical care, and state that you cannot provide instructions that replace emergency care.
Ask a question with the bundled script:
python scripts/chat.py "In T2D with CKD, how should metformin dose be adjusted by eGFR?"
Continue a previous conversation (use the returned conversation_id):
python scripts/chat.py "What if the patient also has mild heart failure?" --conversation-id "prev_id"
OPTIONAL: for multi-tenant user mapping, pass --user using a stable, non-PII external identifier (e.g. --user "opaque-user-123" or --user "hashed-user-id"). The CLI will automatically prefix it with skill_.
When you present DeepEvidence output to the user, you MUST produce a structured Markdown report and follow:
[1], [2]) and preserve their mapping; do not alter/remove markers## 📚 References and display it verbatim.
[3], [5], [13]); do not renumber or reorder for "continuity"> Source: DeepEvidenceIf the user asks to integrate DeepEvidence into an app, use standard OpenAI SDKs with:
https://deepevid.medsci.cn/deepevidence-agent-v1 (fixed value; do not invent other model names)DEEPEVIDENCE_API_KEYExample (Python):
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DEEPEVIDENCE_API_KEY"],
base_url="https://deepevid.medsci.cn/", # Fixed endpoint
)
resp = client.chat.completions.create(
model="deepevidence-agent-v1",
messages=[{"role": "user", "content": "Clinical question"}],
)
print(resp.choices[0].message.content)
When DeepEvidence cannot be called or returns insufficient information, you MUST be transparent and MUST NOT pretend you have evidence-backed conclusions:
DEEPEVIDENCE_API_KEY: 告知用户该环境变量未配置,引导其前往 https://app.medsci.cn/platform/api-keys 申请 API Key 后再重试;在 Key 完成配置前不得继续进行循证查询references/api_reference.md (user mapping via fully anonymized request tags)versionreferences/api_reference.md as source of truth; update failure paths and citation rules first when behavior changesMinimal Q&A set to validate: structured report output, citation markers, references block (when present), and stable failure messages.
DEEPEVIDENCE_API_KEYreferences/api_reference.mdThis skill references repository-local scripts/docs (e.g. scripts/chat.py, references/api_reference.md). If your hosting/distribution does not bundle them, relative paths will break.
Choose one strategy:
scripts/ and references/, ensure Python dependencies are availableMinimal HTTP API example (curl):
curl https://deepevid.medsci.cn/v1/chat/completions \
-H "Authorization: Bearer $DEEPEVIDENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepevidence-agent-v1",
"messages": [{"role": "user", "content": "Clinical question"}]
}'
Note: do not leak API keys in shell history/logs. Do not write full sensitive responses to logs.