mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 23:03:49 +00:00
persist registered objects with distribution
This commit is contained in:
parent
ac93dd89cf
commit
8fe22230b8
9 changed files with 85 additions and 16 deletions
|
@ -10,10 +10,10 @@ from llama_models.llama3.api.datatypes import URL
|
|||
|
||||
from llama_models.schema_utils import json_schema_type, webmethod
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from llama_stack.apis.common.type_system import ParamType
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class DatasetDef(BaseModel):
|
||||
|
@ -24,7 +24,7 @@ class DatasetDef(BaseModel):
|
|||
description="The schema definition for this dataset",
|
||||
)
|
||||
url: URL
|
||||
metadata: Dict[str, Any] = Field(
|
||||
metadata: Dict[str, str] = Field(
|
||||
default_factory=dict,
|
||||
description="Any additional metadata for this dataset",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue