Download src/tools/capabilities.py from DiabetesCareChatbot/dmChatbotBackend: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/DiabetesCareChatbot/dmChatbotBackend/resolve/main/src/tools/capabilities.py
- Command line
-
hf download hf://spaces/DiabetesCareChatbot/dmChatbotBackend/src/tools/capabilities.py
-
curl -L -o capabilities.py https://huggingface.co/spaces/DiabetesCareChatbot/dmChatbotBackend/resolve/main/src/tools/capabilities.py
1.47 kB
| """Capability metadata shared by skill manifests and the Tool Broker.""" | |
| from __future__ import annotations | |
| from typing import Dict | |
| CAPABILITY_DESCRIPTIONS: Dict[str, str] = { | |
| "knowledge.guideline_search": "Search approved clinical and dietary guidelines.", | |
| "knowledge.page_indexed_retrieval": "Retrieve indexed knowledge pages with provenance.", | |
| "knowledge.nutrition_lookup": "Look up structured nutrition information.", | |
| "knowledge.web_search": "Search the governed web-search provider.", | |
| "memory.read": "Read patient narrative memory within the authorized patient scope.", | |
| "memory.propose_write": "Propose patient-memory changes for later consented commit.", | |
| "memory.commit_write": "Commit a previously approved patient-memory proposal.", | |
| "fhir.patient_summary.read": "Read the authorized patient FHIR summary.", | |
| "fhir.observations.read": "Read authorized patient FHIR observations.", | |
| "fhir.medications.read": "Read authorized patient medications.", | |
| "fhir.observations.write": "Write an authorized FHIR observation.", | |
| "fhir.medications.write": "Write an authorized medication record.", | |
| "fhir.bundle.ingest": "Ingest an authorized FHIR bundle.", | |
| "chat.persistence.write": "Persist an authorized chat artifact.", | |
| "cdm.trend_analysis": "Compute deterministic trends from authorized observations.", | |
| } | |
| def is_supported_capability(capability: str) -> bool: | |
| return capability in CAPABILITY_DESCRIPTIONS | |