Spaces:
Configuration error
Configuration error
Create src/state.py
Browse files- src/state.py +11 -0
src/state.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TypedDict, List, Dict, Any, Annotated
|
| 2 |
+
import operator
|
| 3 |
+
|
| 4 |
+
class AgentState(TypedDict):
|
| 5 |
+
disruption_event: str
|
| 6 |
+
impact_analysis: Dict[str, Any]
|
| 7 |
+
alternative_routes: List[Dict[str, Any]]
|
| 8 |
+
audit_passed: bool
|
| 9 |
+
critique_feedback: str
|
| 10 |
+
final_mitigation_plan: str
|
| 11 |
+
messages: Annotated[List[str], operator.add]
|