stream_events(
self,
input: Any,
config: RunnableConfig | None = None,
| Name | Type | Description |
|---|---|---|
input* | Any | The input to the |
config | RunnableConfig | None | Default: NoneThe config to use for the |
version | Literal['v1', 'v2', 'v3'] | Default: 'v2'The version of the schema to use. |
include_names | Sequence[str] | None | Default: None |
include_types | Sequence[str] | None | Default: None |
include_tags | Sequence[str] | None | Default: None |
exclude_names | Sequence[str] | None | Default: None |
exclude_types | Sequence[str] | None | Default: None |
exclude_tags | Sequence[str] | None | Default: None |
**kwargs | Any | Default: {} |
Generate a stream of events synchronously.
Synchronous counterpart to astream_events. For version='v3', subclasses
that implement the v3 streaming protocol (BaseChatModel, CompiledGraph)
override this method. All other versions and base-class calls raise
NotImplementedError.
Only include events from Runnable objects with matching
names.
Only include events from Runnable objects with matching
types.
Only include events from Runnable objects with matching
tags.
Exclude events from Runnable objects with matching names.
Exclude events from Runnable objects with matching types.
Exclude events from Runnable objects with matching tags.
Additional keyword arguments to pass to the Runnable.