astream_log(
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 |
diff | bool | Default: TrueWhether to yield diffs between each step or the current state. |
with_streamed_output_list | bool | Default: True |
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: {} |
Stream all output from a Runnable, as reported to the callback system.
This includes all inner runs of LLMs, Retrievers, Tools, etc.
Output is streamed as Log objects, which include a list of Jsonpatch ops that describe how the state of the run has changed in each step, and the final state of the run.
The Jsonpatch ops can be applied in order to construct state.
Whether to yield the streamed_output list.
Only include logs with these names.
Only include logs with these types.
Only include logs with these tags.
Exclude logs with these names.
Exclude logs with these types.
Exclude logs with these tags.
Additional keyword arguments to pass to the Runnable.