MCPcopy Create free account
hub / github.com/TanStack/ai / progress

Function progress

examples/ts-react-chat/src/routes/generation-hooks.tsx:686–691  ·  view source on GitHub ↗
(value: number, message: string)

Source from the content-addressed store, hash-verified

684}
685
686function progress(value: number, message: string): StreamChunk {
687 return custom(GENERATION_EVENTS.PROGRESS, {
688 progress: value,
689 message,
690 })
691}
692
693function result(value: unknown): StreamChunk {
694 return custom(GENERATION_EVENTS.RESULT, value)

Callers 2

GenerationRunCardFunction · 0.85
connectFunction · 0.85

Calls 1

customFunction · 0.85

Tested by

no test coverage detected