feat: support multi-language

This commit is contained in:
Li Xin
2025-04-21 19:50:34 +08:00
parent 0d2f93c773
commit b67b04ff5d
6 changed files with 54 additions and 45 deletions

View File

@@ -2,9 +2,10 @@
# SPDX-License-Identifier: MIT
import operator
from typing import Annotated
from langgraph.graph import MessagesState
from typing import Annotated
from src.prompts.planner_model import Plan
@@ -12,6 +13,7 @@ class State(MessagesState):
"""State for the agent system, extends MessagesState with next field."""
# Runtime Variables
locale: str = "en-US"
observations: Annotated[list[str], operator.add] = []
plan_iterations: int = 0
current_plan: Plan | str = None