
Ponder
<PonderProvider />
prop | type | default | description |
---|---|---|---|
assistantId | string | – | ID of the assistant configured on the server |
host | string | – | Base HTTP(S) URL running the Ponder WebSocket (/ws/talk ) |
includePaths | string[] | [] | Render the widget only on these routes (empty ⇒ everywhere) |
children | ReactNode | – | Rest of your application |
usePonder()
const {
updateActions,
updateInstructions,
toggleActive,
isListening,
} = usePonder();
member | purpose |
---|---|
updateActions(list) | Replace the current set of callable functions |
updateInstructions() | Update the instructions for the assistant |
toggleActive() | Programmatically click the mic (handy for keyboard shortcuts) |
isListening | boolean – true while the mic is actively capturing user speech |