DifyWorkflowRunData
idstringrequired
workflow_idstringrequired
entrypoint_idstring
entrypoint_titlestring
statusstringrequired
Possible values: [running, succeeded, failed, stopped]
outputs objectrequired
成功时返回当前 output 协议,用户可见内容在 items 数组中。
errCodeintegerrequired
errMessagestringrequired
items object[]required
Array [
idstringrequired
titlestringrequired
contentrequired
原始输出内容。contentType: json 时可以是对象或数组,不需要提前 stringify;contentType: audio 时使用 {src,mimeType,name,size,durationMs?,format?}。
iconstring
iconPresetstring
Possible values: [info, success, warning, error, note, code, list, quote, none]
contentTypestring
Possible values: [markdown, text, json, audio]
collapsedboolean
metadata object
输出项元数据。管理端回放预览被截断时会包含 previewTruncated: true、previewLimit 和 fullContentIn: detail-log。
property name*any
输出项元数据。管理端回放预览被截断时会包含 previewTruncated: true、previewLimit 和 fullContentIn: detail-log。
]
errorstring | nullnullablerequired
elapsed_timenumberrequired
total_tokensnumberrequired
total_stepsnumberrequired
created_atnumberrequired
finished_atnumber | nullnullablerequired
conversation_idstring
DifyWorkflowRunData
{
"id": "string",
"workflow_id": "string",
"entrypoint_id": "string",
"entrypoint_title": "string",
"status": "running",
"outputs": {
"errCode": 0,
"errMessage": "string",
"items": [
{
"id": "string",
"title": "string",
"icon": "string",
"iconPreset": "info",
"contentType": "markdown",
"collapsed": true,
"metadata": {}
}
]
},
"error": "string",
"elapsed_time": 0,
"total_tokens": 0,
"total_steps": 0,
"created_at": 0,
"finished_at": 0,
"conversation_id": "string"
}