Spaces:
Sleeping
Sleeping
File size: 365 Bytes
1b64cba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from pydantic import BaseModel
from typing import Optional, Literal, Dict
ActionType = Literal[
"classify",
"reply",
"schedule",
"prioritize",
"request_info",
"archive"
]
class Action(BaseModel):
type: ActionType
target_id: str # email/task id
payload: Optional[Dict] = None # flexible for different actions |