Download app/tools/base.py from Samad14/bio-nexus-api: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/Samad14/bio-nexus-api/resolve/main/app/tools/base.py
- Command line
-
hf download hf://Samad14/bio-nexus-api/app/tools/base.py
-
curl -L -o base.py https://huggingface.co/Samad14/bio-nexus-api/resolve/main/app/tools/base.py
313 Bytes
| from abc import ABC, abstractmethod | |
| from typing import Any | |
| class BaseTool(ABC): | |
| name: str = "" | |
| async def run(self, input: dict) -> dict: | |
| ... | |
| def requires_input_from(self) -> list[str]: | |
| return [] | |
| def provides_output_to(self) -> list[str]: | |
| return [] | |