coenv / server /actions /scale_action.py
SandyTheAdventurer's picture
Upload folder using huggingface_hub
05a686e verified
raw
history blame contribute delete
308 Bytes
from pydantic import BaseModel, Field
from typing import Literal
class ScaleAction(BaseModel):
action_type: Literal["scale"] = "scale"
deployment: str = Field(..., description="Name of the deployment to scale")
replicas: int = Field(..., ge=1, le=20, description="Target replica count (1-20)")