You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
603 B
Python

"""API request/response schemas."""
from __future__ import annotations
from typing import Any
from pydantic import BaseModel
class ErrorResponse(BaseModel):
detail: str
class ExperimentSearchResponse(BaseModel):
experiments: list[dict[str, Any]]
total: int
class LineageResponse(BaseModel):
tree: dict[str, Any]
ancestor_chain: list[str]
class DiffResponse(BaseModel):
overrides: dict[str, Any]
engines: dict[str, Any]
tags: dict[str, Any]
description: dict[str, Any]
class LeaderboardResponse(BaseModel):
entries: list[dict[str, Any]]
total: int