Hooks & Utilities
v1.0.0Added in 1.0.0
The AI kit's shared vocabulary: message, tool call and model types, token and duration formatting, live timers and a mock stream.
Press Generate to stream a fake answer through mockStream: the text arrives word by word (or letter by letter with chunk char), the token estimate grows, and the elapsed time ticks in formatDuration and formatTimer. Stop aborts the stream through its signal. Below, the capability icons and the tool-call status tones every AI component uses.
npx wingo-ui@latest add ai-chatPro item: the CLI needs a Pro account. See plans
Press Generate for a simulated answer.
delay 28ms · chunk word · en-US · compact true