add optional abstract class

This commit is contained in:
2026-02-28 10:49:07 +08:00
parent b1e6b0f7fc
commit 18d75e754b

View File

@@ -35,6 +35,14 @@ class GraphBase(ABC):
streamable_tags: List[List[str]] # which llm to stream outputs; see routing.py for complex usage 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 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): def _stream_result(self, *nargs, **kwargs):
def text_iterator(): def text_iterator():