feat: lite deep researcher implementation

This commit is contained in:
He Tao
2025-04-07 16:25:55 +08:00
commit 03798ded08
58 changed files with 4242 additions and 0 deletions

16
src/graph/types.py Normal file
View File

@@ -0,0 +1,16 @@
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
last_plan: Plan = None
current_plan: Plan = None
final_report: str = ""