AssistantProvider

Load assistant details and make them available to child components. The provider fetches the current assistant based on the surrounding SuperinterfaceProvider and exposes its name and avatar through AssistantNameContext and AssistantAvatarContext.
app.tsx
import { AssistantProvider, Thread } from '@superinterface/react' export const App = () => ( <AssistantProvider> <Thread /> </AssistantProvider> )

Props

PropTypeRequiredDescription
childrenReact.ReactNodeYesComponents that use the context