Push a new UI message to update the UI state.
This function creates and sends a UI message that will be rendered in the UI. It also updates the graph state with the new UI message.
Example:
push_ui_message(
name="component-name",
props={"content": "Hello world"},
)Optional unique identifier for the UI message. If not provided, a random UUID will be generated.
Optional additional metadata about the UI message.
Optional message object to associate with the UI message.
Key in the graph state where the UI messages are stored.
Whether to merge props with existing UI message (True) or replace them (False).