state.py 390 B

12345678910
  1. from typing import TypedDict,NotRequired
  2. class TravelState(TypedDict):
  3. """user_request:用户原始自然语言请求;
  4. 三个 *_plan:对应专家 Agent 的输出;
  5. final_plan:整合 Agent 的最终结果"""
  6. user_request: str
  7. transport_plan: NotRequired[str]
  8. hotel_plan: NotRequired[str]
  9. attraction_plan: NotRequired[str]
  10. final_plan: NotRequired[str]