Imsachin010's picture
initial deployment
1b64cba
raw
history blame contribute delete
365 Bytes
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