- from typing import TypedDict,NotRequired
- class TravelState(TypedDict):
- """user_request:用户原始自然语言请求;
- 三个 *_plan:对应专家 Agent 的输出;
- final_plan:整合 Agent 的最终结果"""
- user_request: str
- transport_plan: NotRequired[str]
- hotel_plan: NotRequired[str]
- attraction_plan: NotRequired[str]
- final_plan: NotRequired[str]
|