INNER CODE UNIT · Python
ProviderType
concierge-hq/concierge · __init__.py:40
class ProviderType(Enum):
PLAIN = "plain"
SEARCH = "search"
PLAN = "plan"
CODE = "code"
def _get_provider_class(provider_type: ProviderType):
"""Lazy load provider to avoid importing optional dependencies."""
if provider_type == ProviderType.SEARCH:
try:
from concierge.backends.search_backend import SearchBackend
except ImportError as e:
raise ImportError(
"ProviderType.SEARCH requires the 'all' extras "
"(sentence-transformers, numpy). Install with: "
"pip install 'concierge-sdk[all]'"
) from e