Context Providers
React context providers including AssistantRuntimeProvider that scope assistant-ui runtime, thread, message part, and attachment state for primitives, hooks, and custom chat components.
Context providers define where assistant-ui primitives and hooks read their state. Most apps only need AssistantRuntimeProvider, while scoped providers support custom renderers, isolated message parts, and advanced composition.