Files
deer-flow/backend/src/agents/thread_state.py

13 lines
270 B
Python
Raw Normal View History

from typing import NotRequired, TypedDict
2026-01-14 12:32:34 +08:00
from langchain.agents import AgentState
class SandboxState(TypedDict):
sandbox_id: NotRequired[str | None]
2026-01-14 12:32:34 +08:00
class ThreadState(AgentState):
sandbox: NotRequired[SandboxState | None]
title: NotRequired[str | None]