<ai-portal.cruise-canvas>
构件 ai-portal.cruise-canvas
Properties
| Name | Description | Type | Default | Required |
|---|
conversationId | | string | | |
initialRequest | 初始请求数据。仅初始设置有效。 | RequestStore | null | | |
replay | 是否启用回放。仅初始设置有效。 | boolean | | |
replayDelay | 设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。 | number | 2 | |
supports | | Record<string, boolean> | | |
showHiddenJobs | | boolean | | |
showHumanActions | | boolean | | |
showFeedback | | boolean | | |
showFeedbackAfterFailed | | boolean | | |
showFeedbackOnView | | boolean | | |
showUiSwitch | | boolean | | |
hideMermaid | | boolean | | |
showJsxEditor | | boolean | | |
previewUrlTemplate | | string | | |
showCases | | ShowCaseType[] | | |
exampleProjects | | ExampleProject[] | | |
tryItOutUrl | | string | | |
separateInstructions | | boolean | | |
uploadOptions | | UploadOptions | | |
Events
Methods
| Name | Description | Params | Returns |
|---|
resumed | | | |
feedbackSubmitDone | | | |
feedbackSubmitFailed | | | |
feedbackOnViewDone | | viewId: string | |
Type references
RequestStore
extends ExtraChatPayload
| Name | Description | Type | Default | Required |
|---|
conversationId | | string | | ✅ |
content | | string | | ✅ |
UploadFileInfo
| Name | Description | Type | Default | Required |
|---|
fileId | | string | | ✅ |
CommandPayloadServiceFlowStarting
| Name | Description | Type | Default | Required |
|---|
type | | "serviceFlowStarting" | | ✅ |
serviceFlowStarting | | { spaceInstanceId: string; spaceName?: string; flowInstanceId?: string; flowName?: string } | | ✅ |
ShowCaseType
| Name | Description | Type | Default | Required |
|---|
conversationId | | string | | ✅ |
title | | string | | ✅ |
summary | | string | | ✅ |
scenario | | string | | ✅ |
url | | string | | |
ExampleProject
| Name | Description | Type | Default | Required |
|---|
instanceId | | string | | ✅ |
name | | string | | ✅ |
url | | string | | |
UploadOptions
| Name | Description | Type | Default | Required |
|---|
enabled | | boolean | | |
dragDisabled | | boolean | | |
dragTips | | string | | |
accept | | string | | |
maxFiles | | number | | |
maxSize | In bytes | number | | |
readableAccept | | string | | |
readableMaxSize | | string | | |
FeedbackDetail
| Name | Description | Type | Default | Required |
|---|
plan | | string[] | | ✅ |
result | | string[] | | ✅ |
feedback | | string | | ✅ |
ConversationDetail
| Name | Description | Type | Default | Required |
|---|
projectId | | string | | |
CommandPayload
CommandPayloadServiceFlowStarting