add type hinting

This commit is contained in:
2026-01-29 09:44:21 +08:00
parent 3fe5aaa160
commit aafa2b025f

View File

@@ -105,7 +105,7 @@ class Pipeline:
else:
logger.info(f"show graph not supported for {type(self.graph)}")
def invoke(self, *nargs, **kwargs):
def invoke(self, *nargs, **kwargs)->str:
out = self.graph.invoke(*nargs, **kwargs)
# If streaming, yield chunks from the generator