mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 19:51:51 +00:00
a
This commit is contained in:
parent
2788761f6e
commit
20c527eded
4 changed files with 43 additions and 11 deletions
|
|
@ -14,6 +14,14 @@ from llama_stack.schema_utils import json_schema_type, webmethod
|
|||
|
||||
@json_schema_type
|
||||
class ProviderInfo(BaseModel):
|
||||
"""Information about a registered provider including its configuration and health status.
|
||||
|
||||
:param api: The API name this provider implements
|
||||
:param provider_id: Unique identifier for the provider
|
||||
:param provider_type: The type of provider implementation
|
||||
:param config: Configuration parameters for the provider
|
||||
:param health: Current health status of the provider
|
||||
"""
|
||||
api: str
|
||||
provider_id: str
|
||||
provider_type: str
|
||||
|
|
@ -22,6 +30,10 @@ class ProviderInfo(BaseModel):
|
|||
|
||||
|
||||
class ListProvidersResponse(BaseModel):
|
||||
"""Response containing a list of all available providers.
|
||||
|
||||
:param data: List of provider information objects
|
||||
"""
|
||||
data: list[ProviderInfo]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue