mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-04 10:10:36 +00:00
chore: re-add missing decorator
Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
2785819aa7
commit
1b982ff2b6
14 changed files with 570 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ class BenchmarkInput(CommonBenchmarkFields, BaseModel):
|
|||
provider_benchmark_id: str | None = None
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListBenchmarksResponse(BaseModel):
|
||||
data: list[Benchmark]
|
||||
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ class DatasetInput(CommonDatasetFields, BaseModel):
|
|||
dataset_id: str
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListDatasetsResponse(BaseModel):
|
||||
"""Response from listing datasets.
|
||||
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ class OpenAIModel(BaseModel):
|
|||
custom_metadata: dict[str, Any] | None = None
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class OpenAIListModelsResponse(BaseModel):
|
||||
data: list[OpenAIModel]
|
||||
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ class PostTrainingRLHFRequest(BaseModel):
|
|||
logger_config: dict[str, Any]
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class PostTrainingJob(BaseModel):
|
||||
job_uuid: str
|
||||
|
||||
|
|
@ -265,6 +266,7 @@ class PostTrainingJobStatusResponse(BaseModel):
|
|||
checkpoints: list[Checkpoint] = Field(default_factory=list)
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListPostTrainingJobsResponse(BaseModel):
|
||||
data: list[PostTrainingJob]
|
||||
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ class Prompt(BaseModel):
|
|||
return f"pmpt_{hex_string}"
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListPromptsResponse(BaseModel):
|
||||
"""Response model to list prompts."""
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ class ProviderInfo(BaseModel):
|
|||
health: HealthResponse
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListProvidersResponse(BaseModel):
|
||||
"""Response containing a list of all available providers.
|
||||
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ class ScoringFnInput(CommonScoringFnFields, BaseModel):
|
|||
provider_scoring_fn_id: str | None = None
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListScoringFunctionsResponse(BaseModel):
|
||||
data: list[ScoringFn]
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class ShieldInput(CommonShieldFields):
|
|||
provider_shield_id: str | None = None
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListShieldsResponse(BaseModel):
|
||||
data: list[Shield]
|
||||
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ class ToolStore(Protocol):
|
|||
async def get_tool_group(self, toolgroup_id: str) -> ToolGroup: ...
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListToolGroupsResponse(BaseModel):
|
||||
"""Response containing a list of tool groups.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue