A helper utility function that returns the LangGraphRunnableConfig#writer if "custom" stream mode is enabled, otherwise undefined.
getWriter(
config: LangGraphRunnableConfig<Record<string, any>>): (chunk: unknown
) => void | undefined| Name | Type | Description |
|---|---|---|
config | LangGraphRunnableConfig<Record<string, any>> |