From 07ed84c273c139516d69796985241098aed3a4d9 Mon Sep 17 00:00:00 2001 From: goulustis Date: Wed, 22 Oct 2025 12:30:27 +0800 Subject: [PATCH] graph_union for later --- lang_agent/graphs/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lang_agent/graphs/__init__.py diff --git a/lang_agent/graphs/__init__.py b/lang_agent/graphs/__init__.py new file mode 100644 index 0000000..a635539 --- /dev/null +++ b/lang_agent/graphs/__init__.py @@ -0,0 +1,10 @@ +import tyro + +from lang_agent.graphs.react import ReactGraphConfig + +graph_dict = { + "react": ReactGraphConfig() +} + +graph_union = tyro.extras.subcommand_type_from_defaults(graph_dict, prefix_names=False) +AnnotatedGraph = tyro.conf.OmitSubcommandPrefixes[tyro.conf.SuppressFixed[graph_union]] \ No newline at end of file