NoahAI clinical-trial query
简介
NoahAI clinical-trial query
原始描述
Search clinical trial databases similar to ClinicalTrials.gov. Use this skill whenever the user asks about clinical trials, drug trials, indications, targets...
通过你的 Agent 添加
安装目录:clinical-trial-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: clinical-trial-search
description: "Search clinical trial databases similar to ClinicalTrials.gov. Use this skill whenever the user asks about clinical trials, drug trials, indications, targets, drug names, trial phases, NCT IDs, enrollment, or recruitment. Automatically parses natural language questions into structured query parameters and calls the backend API to return matching trial records. Trigger words include: clinical trial, NCT, drug development, indication, target, phase, enrollment, recruitment, sponsor, cohort, arm, endpoint, efficacy, safety data."
Clinical Trial Search Skill
This skill converts natural language questions into structured API queries against a clinical trial database, then presents the results in a readable format.
Workflow
- Parse user intent — Extract key entities from the user's question
- Build query parameters — Map entities to the
ClinicalTrialSearchData schema
- Execute the query — Run
scripts/search.py
- Present results — Format and display trials to the user
Step 1: Extract Keywords
ClinicalTrialSearchData schemascripts/search.pyIdentify the following entity types from the user's question:
| Field | Type | Description | Example |
|---|---|---|---|
nctid |
List[str] |
NCT identifier(s) | ["NCT04280783"] |
acronym |
List[str] |
Trial acronym(s) | ["KEYNOTE-590"] |
company |
List[str] |
Sponsor company name(s) | ["Pfizer", "Roche"] |
indication |
List[str] |
Disease / indication | ["lung cancer", "NSCLC"] |
phase |
List[str] |
Trial phase(s) | ["Phase 1", "Phase 3"] |
target |
dict |
Biological target(s) | {"logic": "or", "data": ["PD-1", "VEGF"]} |
drug_name |
dict |
Drug name(s) | {"logic": "or", "data": ["pembrolizumab"]} |
drug_modality |
dict |
Drug modality / type | {"logic": "or", "data": ["antibody", "small molecule"]} |
drug_feature |
dict |
Drug feature(s) | {"logic": "or", "data": ["bispecific"]} |
location |
dict |
Trial location(s) | {"logic": "or", "data": ["China", "USA"]} |
route_of_administration |
dict |
Route of administration | {"logic": "or", "data": ["IV", "oral"]} |
has_result_summary |
bool |
Only trials with result summaries | true |
official_data |
bool |
Only official data sources | false |
page_num |
int |
Page index (0-based) | 0 |
page_size |
int |
Results per page | 10 |
Dict field format:
{"logic": "or", "data": ["value1", "value2"]}
logiccontrols how multiple values are combined:"or"(any match) or"and"(all must match). Default to"or"unless the user explicitly wants all terms to apply simultaneously.datais the list of keyword strings to match.
Type rules:
indication,acronym,company,nctid,phase→ plainList[str]target,drug_name,drug_modality,drug_feature,location,route_of_administration→dictwithlogicanddata- Default to
page_num: 0, page_size: 10unless the user specifies otherwise - Prefer English keywords (the database is indexed in English); translate non-English terms
Step 2: Execute the Query
python scripts/search.py --params '<JSON string>'
python scripts/search.py --params '<JSON string>'
Or using a parameter file:
python scripts/search.py --params-file /tmp/query.json
Add --raw to receive the unformatted JSON response.
Step 3: Interpret Results
The response contains:
total— total number of matching trialstrials— current page of results, each with NCT ID, title, phase, status, indication, drugs, sponsor, etc.
If results exceed 100, prompt the user to narrow the query. If no results are returned, suggest relaxing one or more filters.
Conversion Examples
User: "Find Phase 3 trials of PD-1 antibodies in lung cancer that have results"
Parameters:
{
"target": {"logic": "or", "data": ["PD-1"]},
"drug_modality": {"logic": "or", "data": ["antibody"]},
"indication": ["lung cancer"],
"phase": ["Phase 3"],
"has_result_summary": true,
"page_num": 0,
"page_size": 10
}
User: "Look up NCT04280783"
Parameters:
{
"nctid": ["NCT04280783"],
"page_num": 0,
"page_size": 1
}
User: "Roche bispecific antibody trials in China"
Parameters:
{
"company": ["Roche"],
"location": {"logic": "or", "data": ["China"]},
"drug_feature": {"logic": "or", "data": ["bispecific"]},
"page_num": 0,
"page_size": 10
}
User: "Oral small molecule KRAS G12C inhibitors in colorectal cancer"
Parameters:
{
"target": {"logic": "or", "data": ["KRAS G12C"]},
"drug_modality": {"logic": "or", "data": ["small molecule"]},
"route_of_administration": {"logic": "or", "data": ["oral"]},
"indication": ["colorectal cancer"],
"page_num": 0,
"page_size": 10
}
Dependencies
- Python 3.8+
requests library (pip install requests)
- Environment variable
NOAH_API_TOKEN — API authentication token (required)
- Register for a free account at noah.bio to obtain your API key.
requests library (pip install requests)NOAH_API_TOKEN — API authentication token (required)
- Register for a free account at noah.bio to obtain your API key.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。