Files
deer-flow/src/graph/types.py
2025-04-14 19:53:00 +08:00

17 lines
450 B
Python

import operator
from langgraph.graph import MessagesState
from typing import Annotated
from src.prompts.planner_model import Plan
class State(MessagesState):
"""State for the agent system, extends MessagesState with next field."""
# Runtime Variables
observations: Annotated[list[str], operator.add] = []
plan_iterations: int = 0
current_plan: Plan | str = None
final_report: str = ""
auto_accepted_plan: bool = False