Files
lang-agent/lang_agent/graphs/__init__.py
2025-10-22 16:37:24 +08:00

12 lines
374 B
Python

import tyro
from lang_agent.graphs.react import ReactGraphConfig
from lang_agent.graphs.routing import RoutingConfig
graph_dict = {
"react": ReactGraphConfig(),
"route": RoutingConfig()
}
graph_union = tyro.extras.subcommand_type_from_defaults(graph_dict, prefix_names=False)
AnnotatedGraph = tyro.conf.OmitSubcommandPrefixes[tyro.conf.SuppressFixed[graph_union]]