chat-stream
<ai-portal.chat-stream>
构件 ai-portal.chat-stream
Examples
Basic
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
conversationId | string | |||
initialRequest | 初始请求数据。仅初始设置有效。 | RequestStore | null | ||
taskId | string | |||
replay | 是否启用回放。仅初始设置有效。 | boolean | ||
replayDelay | 设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。 | number | 2 | |
supports | Record<string, boolean> | |||
showFeedback | boolean | |||
showFeedbackAfterFailed | boolean | |||
showFeedbackOnView | boolean | |||
showUiSwitch | boolean | |||
hideMermaid | boolean |
Events
Name | Description | Event Detail |
---|---|---|
share | void | |
terminate | void | |
feedback.submit | FeedbackDetail | |
feedback.on.view | string | |
ui.switch | "canvas" |
Methods
Name | Description | Params | Returns |
---|---|---|---|
resumed | |||
feedbackSubmitDone | |||
feedbackSubmitFailed | |||
feedbackOnViewDone | viewId: string |
Type references
RequestStore
Name | Description | Type | Default | Required |
---|---|---|---|---|
conversationId | string | ✅ | ||
content | string | ✅ |
FeedbackDetail
Name | Description | Type | Default | Required |
---|---|---|---|---|
plan | string[] | ✅ | ||
result | string[] | ✅ | ||
feedback | string | ✅ |