mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-15 18:32:30 +00:00
address comments
This commit is contained in:
parent
95aef814af
commit
bd39b22717
7 changed files with 25 additions and 45 deletions
|
|
@ -17,7 +17,7 @@ class PaginatedRowsResult(BaseModel):
|
|||
# the rows obey the DatasetSchema for the given dataset
|
||||
rows: List[Dict[str, Any]]
|
||||
total_count: int
|
||||
next_page_token: Optional[int] = None
|
||||
next_page_token: Optional[str] = None
|
||||
|
||||
|
||||
class DatasetStore(Protocol):
|
||||
|
|
@ -34,6 +34,6 @@ class DatasetIO(Protocol):
|
|||
self,
|
||||
dataset_id: str,
|
||||
rows_in_page: int,
|
||||
page_token: Optional[int] = None,
|
||||
page_token: Optional[str] = None,
|
||||
filter_condition: Optional[str] = None,
|
||||
) -> PaginatedRowsResult: ...
|
||||
|
|
|
|||
|
|
@ -50,11 +50,5 @@ class Datasets(Protocol):
|
|||
dataset_identifier: str,
|
||||
) -> Optional[DatasetDefWithProvider]: ...
|
||||
|
||||
@webmethod(route="/datasets/delete")
|
||||
async def delete_dataset(
|
||||
self,
|
||||
dataset_identifier: str,
|
||||
) -> None: ...
|
||||
|
||||
@webmethod(route="/datasets/list", method="GET")
|
||||
async def list_datasets(self) -> List[DatasetDefWithProvider]: ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue