Default implementation of astream, which calls ainvoke. Subclasses should override this method if they support streaming output.
(
self,
input: Input,
config: Optional[RunnableConfig] = None,
**kwargs: Optional[Any],
)
| 816 | yield self.invoke(input, config, **kwargs) |
| 817 | |
| 818 | async def astream( |
| 819 | self, |
| 820 | input: Input, |
| 821 | config: Optional[RunnableConfig] = None, |
| 822 | **kwargs: Optional[Any], |
| 823 | ) -> AsyncIterator[Output]: |
| 824 | """ |
| 825 | Default implementation of astream, which calls ainvoke. |
| 826 | Subclasses should override this method if they support streaming output. |
| 827 | """ |
| 828 | yield await self.ainvoke(input, config, **kwargs) |
| 829 | |
| 830 | @overload |
| 831 | def astream_log( |