File size: 1,468 Bytes
cb505ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""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