Skip to content

AgentStream ​

Response stream, cursor, errors, retry, and completion actions.

Demo ​

AgentStreamOne public API for H5 and Wevu
Live state
Release readiness workflowAgentStream

流式回答

内容正在增量到达,组件保持稳定布局。

Basic Usage ​

vue
<script setup lang="ts">
import { AgentStream } from '@/components/agent-ui'
</script>

<template>
  <AgentStream content="正在生成…" status="streaming" />
</template>

Props ​

PropTypeDefaultDescription
classNameClassValueundefinedRoot classes merged by the target-specific cn helper
contentstring''Visible content
cursorbooleantrueShow cursor
errorstring—Error text
finalbooleanfalseWhether Markdown is final
statusAgentStreamStatusidleStream status

Events ​

EventPayloadDescription
retryvoidRequest retry

Slots ​

SlotDescription
actionsCompletion actions

Streaming scheduler

@varo-ui/ai tracks markstream-core 2.0.7 and stream-markdown-parser 1.2.13. H5 uses RAF; the mini-program target uses timed frames while preserving grapheme boundaries, atomic fence commits, catch-up latency, start delay, burst reveal, pause, resume, flush, and dispose contracts.

Target notes

TargetImport
H5Named export from @/components/agent-ui
weapp@/components/agent-ui/AgentStream.vue