Updated
On this page
The capability registry: maps every capability-eligible service function to a Capability descriptor (scope, params model, inject tokens), resolved lazily to dodge circular imports.
#services.src.orxtra.services._registry
#services.src.orxtra.services._registry
Capability registry: maps every capability-eligible service function to a Capability descriptor and its implementation function.
#get_capabilities
python
def get_capabilities() -> list[Capability]Return the list of all registered capabilities.
#get_capability
python
def get_capability(name: str) -> Capability | NoneLook up a capability by name, or None if not found.
#_get_fn_map
python
def _get_fn_map() -> dict[str, ServiceFn]Build the mapping from capability name to service function.
Uses lazy imports to avoid circular dependencies at module load time.
#get_capability_fn
python
def get_capability_fn(name: str) -> ServiceFnGet the service function for a capability by name.
Raises KeyError if the capability name is not registered.