Files
deer-flow/src/graph/types.py

22 lines
567 B
Python
Raw Normal View History

2025-04-17 11:34:42 +08:00
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
import operator
2025-04-21 19:50:34 +08:00
from typing import Annotated
from langgraph.graph import MessagesState
2025-04-21 19:50:34 +08:00
from src.prompts.planner_model import Plan
class State(MessagesState):
"""State for the agent system, extends MessagesState with next field."""
# Runtime Variables
2025-04-21 19:50:34 +08:00
locale: str = "en-US"
observations: Annotated[list[str], operator.add] = []
plan_iterations: int = 0
2025-04-14 18:01:50 +08:00
current_plan: Plan | str = None
final_report: str = ""
2025-04-14 18:01:50 +08:00
auto_accepted_plan: bool = False