The message to push. The message must have an ID set, otherwise an error will be thrown.
Optional
options: RunnableConfig<Record<string, any>> & { stateKey?: null | string }RunnableConfig / Runtime coming from node context.
Optional
stateKey?: null | stringThe key of the state to push the message to. Set to null
to avoid persisting.
Manually push a message to a message stream.
This is useful when you need to push a manually created message before the node has finished executing.
When a message is pushed, it will be automatically persisted to the state after the node has finished executing. To disable persisting, set
options.stateKey
tonull
.