mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 23:51:00 +00:00
add comment about registry list return
This commit is contained in:
parent
46c4c35769
commit
52344391b9
1 changed files with 5 additions and 0 deletions
|
@ -16,7 +16,12 @@ from llama_stack.providers.utils.kvstore import KVStore
|
|||
|
||||
|
||||
class DistributionRegistry(Protocol):
|
||||
|
||||
async def get(self, identifier: str) -> [RoutableObjectWithProvider]: ...
|
||||
# The current data structure allows multiple objects with the same identifier but different providers.
|
||||
# This is not ideal - we should have a single object that can be served by multiple providers,
|
||||
# suggesting a data structure like (obj: Obj, providers: List[str]) rather than List[RoutableObjectWithProvider].
|
||||
# The current approach could lead to inconsistencies if the same logical object has different data across providers.
|
||||
async def register(self, obj: RoutableObjectWithProvider) -> None: ...
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue