tooluniverse 0.1.2__py3-none-any.whl → 0.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tooluniverse might be problematic. Click here for more details.

@@ -108,7 +108,7 @@ class OpentargetToolDrugNameMatch(GraphQLTool):
108
108
  print("No drug name found in the arguments.")
109
109
  return None
110
110
  drug_name_results = self.drug_generic_tool.run(name_arguments)
111
- if 'openfda.generic_name' in drug_name_results:
111
+ if drug_name_results is not None and 'openfda.generic_name' in drug_name_results:
112
112
  arguments[each_args] = drug_name_results['openfda.generic_name']
113
113
  print("Found generic name. Trying with the generic name: ", arguments[each_args])
114
114
  results = execute_query(endpoint_url=self.endpoint_url, query=self.query_schema, variables=arguments)
@@ -3,6 +3,7 @@ from .base_tool import BaseTool
3
3
  import copy
4
4
  import re
5
5
  import json
6
+ import os
6
7
 
7
8
  def check_keys_present(api_capabilities_dict, keys):
8
9
  for key in keys:
@@ -219,7 +220,7 @@ class FDATool(BaseTool):
219
220
  if self.exists is None:
220
221
  self.exists = self.return_fields
221
222
  self.endpoint_url = endpoint_url
222
- self.api_key = api_key
223
+ self.api_key = api_key or os.getenv('FDA_API_KEY')
223
224
 
224
225
  def run(self, arguments):
225
226
  arguments = copy.deepcopy(arguments)
@@ -390,7 +391,7 @@ class FDADrugLabelGetDrugGenericNameTool(FDADrugLabelTool):
390
391
  }
391
392
 
392
393
 
393
- from data.fda_drugs_with_brand_generic_names_for_tool import drug_list
394
+ from .data.fda_drugs_with_brand_generic_names_for_tool import drug_list
394
395
 
395
396
  self.brand_to_generic = {drug['brand_name']: drug['generic_name'] for drug in drug_list}
396
397
  self.generic_to_brand = {drug['generic_name']: drug['brand_name'] for drug in drug_list}
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tooluniverse
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: A collection of biomedical tools designed for use by Agentic AI.
5
5
  Home-page: https://github.com/mims-harvard/TxAgent
6
6
  Author: Shanghua Gao
@@ -11,11 +11,12 @@ License-File: LICENSE
11
11
  Requires-Dist: requests
12
12
  Requires-Dist: numpy
13
13
  Requires-Dist: graphql-core
14
+ Dynamic: license-file
14
15
 
15
16
  # ToolUniverse
16
17
 
17
18
  [![ProjectPage](https://img.shields.io/badge/Page-TxAgent-red)](https://zitniklab.hms.harvard.edu/TxAgent)
18
- [![PaperLink](https://img.shields.io/badge/PDF-TxAgent-red)]()
19
+ [![PaperLink](https://img.shields.io/badge/Arxiv-TxAgent-red)](https://arxiv.org/pdf/2503.10970)
19
20
  [![TxAgent-PIP](https://img.shields.io/badge/Pip-TxAgent-blue)](https://pypi.org/project/txagent/)
20
21
  [![ToolUniverse-PIP](https://img.shields.io/badge/Pip-ToolUniverse-blue)](https://pypi.org/project/tooluniverse/)
21
22
  [![TxAgent](https://img.shields.io/badge/Code-TxAgent-purple)](https://github.com/mims-harvard/TxAgent)
@@ -124,7 +125,15 @@ tooluni.run(query)
124
125
  ## Citation
125
126
 
126
127
  ```
127
-
128
+ @misc{gao2025txagent,
129
+ title={TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools},
130
+ author={Shanghua Gao and Richard Zhu and Zhenglun Kong and Ayush Noori and Xiaorui Su and Curtis Ginder and Theodoros Tsiligkaridis and Marinka Zitnik},
131
+ year={2025},
132
+ eprint={2503.10970},
133
+ archivePrefix={arXiv},
134
+ primaryClass={cs.AI},
135
+ url={https://arxiv.org/abs/2503.10970},
136
+ }
128
137
  ```
129
138
 
130
139
  ## Contact
@@ -1,8 +1,8 @@
1
1
  tooluniverse/__init__.py,sha256=j44hf13WM50HQJRi7aloeTG6y6872wJtfX8ydsaiJFI,652
2
2
  tooluniverse/base_tool.py,sha256=WMGgr02lhEsVzHgt7NIeynXQ2wZtu97yZI-lQWOSoSs,1145
3
3
  tooluniverse/execute_function.py,sha256=CmA8AIfyolkcooASD2_3pXgF1BqESU5_VUqdHSYiM_M,10139
4
- tooluniverse/graphql_tool.py,sha256=FpyP70ZiQkd031crECAhZ7CbXBor8x6S-n48VICnxVs,5086
5
- tooluniverse/openfda_tool.py,sha256=SPs4skPqwaC2RaZvqD1LA31VeQmMl4bOh7CkTpJKM5U,21017
4
+ tooluniverse/graphql_tool.py,sha256=WU-9YAYbmfbfGwGDn7Y22DVju9t68CKuv_JNz_11NkM,5120
5
+ tooluniverse/openfda_tool.py,sha256=s4ctA7ckID7VA1wRceRGknFV5zu9sR7fqTJ8oa9U0q4,21056
6
6
  tooluniverse/restful_tool.py,sha256=5HoTyCSd507D4Qjcqjd16o8Y4BFZ02Zm4cGuczIXWdw,4078
7
7
  tooluniverse/utils.py,sha256=zh1IopojPBIJzK_8eGytTmWlPckluQQZTpiCQONw-pY,6416
8
8
  tooluniverse/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -11,8 +11,8 @@ tooluniverse/data/fda_drugs_with_brand_generic_names_for_tool.py,sha256=Clb7kQpP
11
11
  tooluniverse/data/monarch_tools.json,sha256=I5KvamNZRvkKBaKbM6Ypo333m-RejQhqScX8h-uket4,3567
12
12
  tooluniverse/data/opentarget_tools.json,sha256=nNvl-vYqS8nLfyIvHO40Fsnx6HJxwInUuS0mrrh6xmY,66201
13
13
  tooluniverse/data/special_tools.json,sha256=tOI0TFpdjZBEE5Af1Vc4CeXQ0gAkz39xho9hDVBYR70,1518
14
- tooluniverse-0.1.2.dist-info/LICENSE,sha256=Unq9Y3buGL9J0vFop03FYZiVweytt1xdgLIh2n9ck2c,1115
15
- tooluniverse-0.1.2.dist-info/METADATA,sha256=jIX6oJVszWsBMomzMZjhbPnH2ymvaq8tD6z6BbyOE78,4742
16
- tooluniverse-0.1.2.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
17
- tooluniverse-0.1.2.dist-info/top_level.txt,sha256=zZ8YeCJ5FAkEwdd_mxsFtSCQMBDgBdxrrmHo3RNBiWs,13
18
- tooluniverse-0.1.2.dist-info/RECORD,,
14
+ tooluniverse-0.1.4.dist-info/licenses/LICENSE,sha256=Unq9Y3buGL9J0vFop03FYZiVweytt1xdgLIh2n9ck2c,1115
15
+ tooluniverse-0.1.4.dist-info/METADATA,sha256=-qi9jrg4MLNop0QFi9ezycLwM-81Poo0J9CkAD4k7Lg,5220
16
+ tooluniverse-0.1.4.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
17
+ tooluniverse-0.1.4.dist-info/top_level.txt,sha256=zZ8YeCJ5FAkEwdd_mxsFtSCQMBDgBdxrrmHo3RNBiWs,13
18
+ tooluniverse-0.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (77.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5