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.
- {tooluniverse-0.1.3/src/tooluniverse.egg-info → tooluniverse-0.1.4}/PKG-INFO +3 -2
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/setup.cfg +1 -1
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/graphql_tool.py +1 -1
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/openfda_tool.py +2 -1
- {tooluniverse-0.1.3 → tooluniverse-0.1.4/src/tooluniverse.egg-info}/PKG-INFO +3 -2
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/LICENSE +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/README.md +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/pyproject.toml +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/__init__.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/base_tool.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/__init__.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/fda_drug_labeling_tools.json +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/fda_drugs_with_brand_generic_names_for_tool.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/monarch_tools.json +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/opentarget_tools.json +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/special_tools.json +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/execute_function.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/restful_tool.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/utils.py +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/SOURCES.txt +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/dependency_links.txt +0 -0
- {tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse.egg-info/requires.txt +0 -0
- {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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: tooluniverse
|
|
3
|
-
Version: 0.1.
|
|
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
|
|
|
@@ -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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: tooluniverse
|
|
3
|
-
Version: 0.1.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tooluniverse-0.1.3 → tooluniverse-0.1.4}/src/tooluniverse/data/fda_drug_labeling_tools.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|