This repository has been archived on 2026-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
orchestrator/state.py

23 lines
551 B
Python
Raw Permalink Normal View History

from typing import Annotated, Literal
from typing_extensions import TypedDict
from langgraph.graph.message import add_messages
from langchain_core.messages import AnyMessage
2026-05-15 11:36:03 -04:00
class OrchestratorState(TypedDict, total=False):
messages: Annotated[list[AnyMessage], add_messages]
task: str
route: Literal[
"implementer",
"reviewer",
"researcher",
"cross_reviewer",
"scanner",
"fast_coder",
"connector",
"done",
"unknown",
]
result: str
2026-05-15 11:36:03 -04:00
retrieved: list[dict]