From 18d75e754b1829b5a85bc0ce942b784893c5a788 Mon Sep 17 00:00:00 2001 From: goulustis Date: Sat, 28 Feb 2026 10:49:07 +0800 Subject: [PATCH] add optional abstract class --- lang_agent/base.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lang_agent/base.py b/lang_agent/base.py index 15ab10a..cffc9be 100644 --- a/lang_agent/base.py +++ b/lang_agent/base.py @@ -34,6 +34,14 @@ class GraphBase(ABC): workflow: CompiledStateGraph # the main workflow streamable_tags: List[List[str]] # which llm to stream outputs; see routing.py for complex usage textreleaser_delay_keys: List[str] = (None, None) # use to control when to start streaming; see routing.py for complex usage + + def _build_modules(self): + # NOTE: optional abc + pass + + def _build_graph(self): + # NOTE: optional abc + pass def _stream_result(self, *nargs, **kwargs):