<ai-portal.cruise-canvas>
构件 ai-portal.cruise-canvas
Examples
Basic
Properties
Name | Description | Type | Default | Required |
---|
taskId | | string | | |
task | | TaskBaseDetail | | |
jobs | | Job[] | | |
goBackUrl | | string | | |
Events
Name | Description | Event Detail |
---|
share | | void |
Type references
Task
Name | Description | Type | Default | Required |
---|
id | | string | | ✅ |
title | | string | | ✅ |
requirement | | string | | ✅ |
state | | TaskState | | ✅ |
plan | | Step[] | | ✅ |
jobs | | Job[] | | ✅ |
startTime | | number | | ✅ |
endTime | | number | | |
Step
Name | Description | Type | Default | Required |
---|
id | | string | | ✅ |
instruction | | string | | ✅ |
Job
Name | Description | Type | Default | Required |
---|
id | | string | | ✅ |
upstream | | string[] | | |
parent | | string | | |
instruction | | string | | |
state | | JobState | | ✅ |
toolCall | | ToolCall | | |
messages | | Message[] | | |
isError | | boolean | | |
startTime | | number | | ✅ |
endTime | | number | | |
Name | Description | Type | Default | Required |
---|
name | | string | | ✅ |
arguments | | Record<string, unknown> | | |
argumentsParseFailed | | boolean | | |
argumentsParseError | | unknown | | |
Message
Name | Description | Type | Default | Required |
---|
role | | string | | ✅ |
parts | | Part[] | | ✅ |
TextPart
Name | Description | Type | Default | Required |
---|
type | | "text" | | ✅ |
text | | string | | ✅ |
FilePart
Name | Description | Type | Default | Required |
---|
type | | "file" | | ✅ |
file | | { name?: string; mimeType?: string; bytes?: string; uri?: string } | | ✅ |
DataPart
Name | Description | Type | Default | Required |
---|
type | | "data" | | ✅ |
data | | Record<string, unknown> | | ✅ |
TaskBaseDetail
Omit<Task, "jobs">
TaskState
"submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "unknown"
JobState
TaskState
Part
TextPart | FilePart | DataPart