tooluniverse 0.1.3__tar.gz → 0.1.4__tar.gz

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.

Files changed (23) hide show
  1. {tooluniverse-0.1.3/src/tooluniverse.egg-info → tooluniverse-0.1.4}/PKG-INFO +3 -2
  2. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/setup.cfg +1 -1
  3. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/graphql_tool.py +1 -1
  4. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/openfda_tool.py +2 -1
  5. {tooluniverse-0.1.3 → tooluniverse-0.1.4/src/tooluniverse.egg-info}/PKG-INFO +3 -2
  6. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/LICENSE +0 -0
  7. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/README.md +0 -0
  8. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/pyproject.toml +0 -0
  9. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/__init__.py +0 -0
  10. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/base_tool.py +0 -0
  11. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/__init__.py +0 -0
  12. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/fda_drug_labeling_tools.json +0 -0
  13. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/fda_drugs_with_brand_generic_names_for_tool.py +0 -0
  14. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/monarch_tools.json +0 -0
  15. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/opentarget_tools.json +0 -0
  16. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/special_tools.json +0 -0
  17. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/execute_function.py +0 -0
  18. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/restful_tool.py +0 -0
  19. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/utils.py +0 -0
  20. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/SOURCES.txt +0 -0
  21. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/dependency_links.txt +0 -0
  22. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/requires.txt +0 -0
  23. {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tooluniverse
3
- Version: 0.1.3
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,6 +11,7 @@ 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
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = tooluniverse
3
- version = 0.1.3
3
+ version = 0.1.4
4
4
  description = A collection of biomedical tools designed for use by Agentic AI.
5
5
  author = Shanghua Gao
6
6
  author_email = shanghuagao@gmail.com
@@ -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)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tooluniverse
3
- Version: 0.1.3
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,6 +11,7 @@ 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
 
File without changes
File without changes