Multi-model agent routing with 7 agent nodes (Sonnet, Haiku, GPT-4.1, Gemini, DeepSeek) and 15 pre-loaded Composio tools for Slack, Notion, GitHub, and Google Drive integration.
20 lines
493 B
Python
20 lines
493 B
Python
from typing import Annotated, Literal
|
|
from typing_extensions import TypedDict
|
|
from langgraph.graph.message import add_messages
|
|
from langchain_core.messages import AnyMessage
|
|
|
|
|
|
class OrchestratorState(TypedDict):
|
|
messages: Annotated[list[AnyMessage], add_messages]
|
|
task: str
|
|
route: Literal[
|
|
"implementer",
|
|
"reviewer",
|
|
"researcher",
|
|
"cross_reviewer",
|
|
"scanner",
|
|
"fast_coder",
|
|
"connector",
|
|
"done",
|
|
]
|
|
result: str
|