Spaces:
Runtime error
Runtime error
File size: 661 Bytes
3f713ce 2948416 3f713ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from typing import Annotated, Optional
from typing_extensions import TypedDict
from langgraph.graph.message import add_messages
class GovBridgeState(TypedDict):
messages: Annotated[list, add_messages]
location: str
org: str
category: Optional[str] # "idea" | "complaint"
collected_details: dict
email_subject: Optional[str]
email_body: Optional[str]
email_to: Optional[str]
email_cc: list[str]
conversation_complete: bool
draft_approved: bool
email_draft: Optional[str] # revised draft stored between approval cycles
tone: Optional[str] # "formal" | "assertive" | "diplomatic"
|