Files
Shanghua 5de8f4b198 add new database tools and improve tool loading validation
- Add support for new database tools: GBIF, OBIS, WikiPathways, RNAcentral, ENCODE, GTEx, MGnify, GDC
- Add optimizer tools and smolagents tool wrapper configs
- Improve tool loading validation to filter out schema files and ensure tool names are strings
- Update tool count from 713 to 734 tools
- Fix tool validation to safely check supports_caching method using getattr
- Add save_dir parameter to ToolDiscover tool
- Update PyPIPackageInspector to inherit from BaseTool
- Add smolagents as optional dependency in pyproject.toml
- Simplify UniProt_search documentation
- Minor log message improvements in smcp_server
2025-10-31 22:56:11 -04:00

25 lines
689 B
Python

from tooluniverse import ToolUniverse
def main():
tu = ToolUniverse()
tu.load_tools()
# Example 1: search experiments (type=Experiment)
res1 = tu.run_one_function({
"name": "ENCODE_search_experiments",
"arguments": {"assay_title": "ChIP-seq", "limit": 3}
})
print("ENCODE_search_experiments:", res1 if isinstance(res1, dict) else str(res1)[:500])
# Example 2: list files from ENCODE
res2 = tu.run_one_function({
"name": "ENCODE_list_files",
"arguments": {"file_type": "fastq", "limit": 3}
})
print("ENCODE_list_files:", res2 if isinstance(res2, dict) else str(res2)[:500])
if __name__ == "__main__":
main()