mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-05 07:02:13 +08:00
22 lines
542 B
Python
22 lines
542 B
Python
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
import operator
|
|
from typing import Annotated
|
|
|
|
from langgraph.graph import MessagesState
|
|
|
|
from src.prompts.planner_model import Plan
|
|
|
|
|
|
class State(MessagesState):
|
|
"""State for the agent system, extends MessagesState with next field."""
|
|
|
|
# Runtime Variables
|
|
locale: str = "en-US"
|
|
observations: list[str] = []
|
|
plan_iterations: int = 0
|
|
current_plan: Plan | str = None
|
|
final_report: str = ""
|
|
auto_accepted_plan: bool = False
|