formula_search
Retrieve accurate scientific formulas from Wikidata, BioModels, and SciPy. Search by name or domain to get equations with LaTeX and SymPy representations.
Instructions
搜尋公式(跨多個來源)
這是科學運算 Agent 的核心工具,可從多個權威來源檢索準確的公式。
使用直接精確檢索(非 RAG),確保公式正確性。
Args:
query: 搜尋關鍵字
- 英文名稱: "Reynolds number", "Arrhenius equation"
- 領域術語: "pharmacokinetics", "Michaelis-Menten"
source: 資料來源
- "all": 搜尋所有來源(預設)
- "wikidata": 僅 Wikidata(跨領域)
- "biomodels": 僅 BioModels(藥學/生物)
- "scipy": 僅 SciPy 常數
domain: 限定領域(可選)
- "mechanics", "thermodynamics", "electromagnetism"
- "pharmacokinetics", "pharmacodynamics", "enzyme_kinetics"
limit: 返回數量上限
Returns:
{
"success": true,
"results": [
{
"id": "Q179057",
"name": "Reynolds number",
"latex": "Re = \frac{\rho v L}{\mu}",
"sympy_str": "rho * v * L / mu",
"source": "wikidata",
"url": "https://www.wikidata.org/wiki/Q179057"
}
],
"total": 1,
"sources_searched": ["wikidata"]
}
Example:
# 搜尋雷諾數
formula_search("Reynolds number")
# 搜尋藥動學模型
formula_search("one compartment", source="biomodels")
# 按領域搜尋
formula_search("diffusion", domain="thermodynamics")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| domain | No | ||
| source | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||