SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

STREAM_END_ATTRIBUTE

Attribute revealStream sets on the reply when it ends: "done" or "stopped".

tsx
import { STREAM_END_ATTRIBUTE } from "@sdxc/ui/chat";

Signature

typescript
const STREAM_END_ATTRIBUTE = "data-stream-end"

The events, constants and types its module publishes, each imported from @sdxc/ui/chat too.

Interface

StreamRevealOptions

Options for revealStream.

MemberTypeRequiredDescription
intervalnumberNoMilliseconds between ticks. @default 32
onEnd(end: StreamRevealEnd) => voidNoCalled once, when the whole reply has shown or StreamReveal.stop ran.
signalAbortSignalNoStops the reveal where it is when aborted, as StreamReveal.stop does.
Interface

StreamReveal

A running reveal.

MemberTypeRequiredDescription
stopvoidYesFreezes the reply at what has shown; the rest of it stays out of the page.
Type

StreamRevealEnd

How a reveal finished.

typescript
type StreamRevealEnd = "done" | "stopped"
@sdxc/ui

Can’t find it? Contact us