Spaces:
Configuration error
Configuration error
File size: 586 Bytes
aa15bce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from __future__ import annotations
from typing import Optional
from pydantic import BaseModel, ConfigDict
class TriggerRecord(BaseModel):
"""Serialized trigger representation returned to callers."""
model_config = ConfigDict(from_attributes=True)
id: int
agent_name: str
payload: str
start_time: Optional[str] = None
next_trigger: Optional[str] = None
recurrence_rule: Optional[str] = None
timezone: Optional[str] = None
status: str
last_error: Optional[str] = None
created_at: str
updated_at: str
__all__ = ["TriggerRecord"]
|