TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools
See the code
Precision therapeutics require multimodal adaptive models that generate personalized treatment recommendations. We introduce TxAgent, an AI agent that leverages multi-step reasoning and real-time biomedical knowledge retrieval across a toolbox of 211 tools to analyze drug interactions, contraindications, and patient-specific treatment strategies.
TxAgent outperforms leading LLMs, tool-use models, and reasoning agents across five new benchmarks: DrugPC, BrandPC, GenericPC, TreatmentPC, and DescriptionPC, covering 3,168 drug reasoning tasks and 456 personalized treatment scenarios.
By integrating multi-step inference, real-time knowledge grounding, and tool- assisted decision-making, TxAgent ensures that treatment recommendations align with established clinical guidelines and real-world evidence, reducing the risk of adverse events and improving therapeutic decision-making.
Dependency:
- An H100 GPU with more than 80GB of memory is recommended when running TxAgent.
- ToolUniverse requires a device with an internet connection.
Install ToolUniverse:
# Install from source code:
git clone https://github.com/mims-harvard/ToolUniverse.git
cd ToolUniverse
python -m pip install . --no-cache-dir
OR
# Install from pip:
pip install tooluniverse
Install TxAgent:
# Install from source code:
git clone https://github.com/mims-harvard/TxAgent.git
python -m pip install . --no-cache-dir
OR
# Install from pip:
pip install txagent
Run the example:
python run_example.py
Run the gradio demo:
python run_txagent_app.py
Pretrained model weights are available in HuggingFace.
| Model | Description |
|---|---|
| TxAgent-T1-Llama-3.1-8B | TxAgent LLM |
| ToolRAG-T1-GTE-Qwen2-1.5B | Tool RAG embedding model |
Please visit project page for more details.

@misc{gao2025txagent,
title={TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools},
author={Shanghua Gao and Richard Zhu and Zhenglun Kong and Ayush Noori and Xiaorui Su and Curtis Ginder and Theodoros Tsiligkaridis and Marinka Zitnik},
year={2025},
eprint={2503.10970},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2503.10970},
}
If you have any questions or suggestions, please email Shanghua Gao and Marinka Zitnik.
1,329 followers · starred May 2025
70 followers · starred Mar 2025
141 followers · starred Nov 2025
158 followers · starred Mar 2025
TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools
See the code
Precision therapeutics require multimodal adaptive models that generate personalized treatment recommendations. We introduce TxAgent, an AI agent that leverages multi-step reasoning and real-time biomedical knowledge retrieval across a toolbox of 211 tools to analyze drug interactions, contraindications, and patient-specific treatment strategies.
TxAgent outperforms leading LLMs, tool-use models, and reasoning agents across five new benchmarks: DrugPC, BrandPC, GenericPC, TreatmentPC, and DescriptionPC, covering 3,168 drug reasoning tasks and 456 personalized treatment scenarios.
By integrating multi-step inference, real-time knowledge grounding, and tool- assisted decision-making, TxAgent ensures that treatment recommendations align with established clinical guidelines and real-world evidence, reducing the risk of adverse events and improving therapeutic decision-making.
Dependency:
- An H100 GPU with more than 80GB of memory is recommended when running TxAgent.
- ToolUniverse requires a device with an internet connection.
Install ToolUniverse:
# Install from source code:
git clone https://github.com/mims-harvard/ToolUniverse.git
cd ToolUniverse
python -m pip install . --no-cache-dir
OR
# Install from pip:
pip install tooluniverse
Install TxAgent:
# Install from source code:
git clone https://github.com/mims-harvard/TxAgent.git
python -m pip install . --no-cache-dir
OR
# Install from pip:
pip install txagent
Run the example:
python run_example.py
Run the gradio demo:
python run_txagent_app.py
Pretrained model weights are available in HuggingFace.
| Model | Description |
|---|---|
| TxAgent-T1-Llama-3.1-8B | TxAgent LLM |
| ToolRAG-T1-GTE-Qwen2-1.5B | Tool RAG embedding model |
Please visit project page for more details.

@misc{gao2025txagent,
title={TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools},
author={Shanghua Gao and Richard Zhu and Zhenglun Kong and Ayush Noori and Xiaorui Su and Curtis Ginder and Theodoros Tsiligkaridis and Marinka Zitnik},
year={2025},
eprint={2503.10970},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2503.10970},
}
If you have any questions or suggestions, please email Shanghua Gao and Marinka Zitnik.
1,329 followers · starred May 2025
70 followers · starred Mar 2025
141 followers · starred Nov 2025
158 followers · starred Mar 2025