Skip to content

AgentContextCard ​

展示检索知识块、来源类型与跳转动作。

案例 ​

AgentContextCardH5 与 Wevu 使用同一公共 API
实时状态
发布检查工作流AgentContextCard
检索上下文来自检索结果的上下文片段2
  1. Supplier policyPDF

    Cold-chain certification must be verified before a new supplier can be approved.

    Onboarding SOP.pdf
  2. Build reportJSON

    H5 and weapp-vite builds both completed successfully.

    CI report.json

基础用法 ​

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

<template>
  <AgentContextCard title="检索上下文" :chunks="chunks" />
</template>

Props ​

PropTypeDefault说明
chunksAgentContextChunk[][]上下文块
titlestringRetrieved context标题

Events ​

EventPayload说明
openAgentContextChunk打开来源

平台差异

TargetImport
H5Named export from @/components/agent-ui
weapp默认导出自 @/components/agent-ui/AgentContextCard.vue