Download src/core/tools/__init__.py from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 1.58 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/tools/__init__.py
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/core/tools/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/tools/__init__.py
1.58 kB
| """ | |
| YAZ Care Platform - Tool Registry System v6.0.0 | |
| Dynamic tool registration for user-branded workflow products. | |
| Architecture: | |
| - Platform = Domain-agnostic infrastructure (cells, reservations, mesh) | |
| - Tools = User-created branded products for specific domains | |
| - Templates = Reusable patterns within tools (checklists, protocols) | |
| Key Concepts: | |
| - Any user can create a "Tool" (branded product) for their domain | |
| - Tools solve cases within specific domains (surgical, clinical, lab, etc.) | |
| - Platform provides infrastructure; tools provide domain logic | |
| - Tools can be shared/sold via marketplace | |
| Example: | |
| - "Surgio" = A tool created by User A for surgical case management | |
| - "SurgeryPro" = A tool created by User B for surgical case management | |
| - Both use the same platform infrastructure (cells, SLAs, mesh) | |
| - Both solve cases in the "surgical" domain | |
| """ | |
| from .models import ( | |
| Tool, | |
| ToolType, | |
| ToolStatus, | |
| ToolDomain, | |
| ToolLicense, | |
| ToolVersion, | |
| ToolInstallation, | |
| ToolCreate, | |
| ToolUpdate, | |
| ToolResponse, | |
| ToolInstallRequest, | |
| ToolInstallResponse, | |
| ) | |
| from .registry import ToolRegistry, ToolService, get_registry | |
| from .routes import router as tools_router | |
| __all__ = [ | |
| # Models | |
| "Tool", | |
| "ToolType", | |
| "ToolStatus", | |
| "ToolDomain", | |
| "ToolLicense", | |
| "ToolVersion", | |
| "ToolInstallation", | |
| # Schemas | |
| "ToolCreate", | |
| "ToolUpdate", | |
| "ToolResponse", | |
| "ToolInstallRequest", | |
| "ToolInstallResponse", | |
| # Services | |
| "ToolRegistry", | |
| "ToolService", | |
| "get_registry", | |
| # Routes | |
| "tools_router", | |
| ] | |