Add an introspection "Api.inspect" API

This commit is contained in:
Ashwin Bharambe 2024-10-02 15:13:24 -07:00
parent 01d93be948
commit 8d049000e3
14 changed files with 619 additions and 174 deletions

View file

@ -46,6 +46,8 @@ def get_provider_registry() -> Dict[Api, Dict[str, ProviderSpec]]:
for api in stack_apis():
if api in routing_table_apis:
continue
if api == Api.inspect:
continue
name = api.name.lower()
module = importlib.import_module(f"llama_stack.providers.registry.{name}")