跳至主要内容

asgard.process.complete

asgard.process.complete 事件表示 process 事件完成。並且 fact 中的 processComplete 物件會列出這個 process 的完整收到回覆的參數資訊,這些資訊對於除錯或是客製化 UI 來說非常重要。

資訊

此訊息為 Debug Mode 啟動時才會出現,預設隱藏。

事件特性

  • 觸發時機:當每個 process 請求的事件完成時
  • 作用:提供用戶可以從這邊來理解 process 的運作流程以及收到回覆的參數等資訊
  • 頻率:每個請求只會觸發一次事件

完整範例

{
"eventType": "asgard.process.complete",
"requestId": "6939c5a6c590d90c401e3850a1ff44f3",
"namespace": "qa-7e301310-a594-xxxx-xxxx-xxxxxxxxxxxx",
"botProviderName": "bpapi-d97c512f-f8dc-xxxx-xxxx-xxxxxxxxxxxx",
"customChannelId": "ch-6xxxxxxxxxxxx",
"fact": {
"runInit": null,
"runDone": null,
"runError": null,
"processStart": null,
"processComplete": {
"processId": "81ed7c38df488a6b",
"taskResult": {
"channelMaxIdleMs": 86400000,
"context": {
"answer": "The Jurassic is a geologic period from about 201 million to 145 million years ago, part of the Mesozoic Era, and is known for the flourishing of dinosaurs. This period is characterized by a great diversity of dinosaurs, such as Tyrannosaurus, Brachiosaurus, and other well-known species. Land plants were mainly conifers and ferns, and as the climate warmed, ecosystems became more diverse. If you are interested in specific dinosaur species, plant evolution, or other related topics, please let me know and I will be happy to provide more information!",
"customChannelId": "ch-6xxxxxxxxxxxx",
"customMessageId": "msg-6xxxxxxxxxxxx",
"prevBlobs": [],
"prevMessage": "Jurassic",
"prevPayload": {}
},
"destRelationship": "success",
"errorDetail": null,
"isDebug": true,
"isStreaming": true,
"meta": {
"botProviderName": "bpapi-d97c512f-f8dc-xxxx-xxxx-xxxxxxxxxxxx",
"customChannelId": "ch-6xxxxxxxxxxxx",
"customMessageId": "msg-6xxxxxxxxxxxx",
"namespace": "qa-7e301310-a594-4a7b-aa2a-xxxxxxxxxxxx",
"processorName": "processor-ompletion-b1d3e00c-f991-xxxx-xxxx-xxxxxxxxxxxx",
"requestId": "596506bea7b6be5d88ed1ceb047d1fba",
"type": "llm-completion",
"workflowName": "wf-emoot-e85ed394-733c-xxxx-xxxx-xxxxxxxxxxxx"
},
"unsupervisedStepCounter": 2
}
},
"messageStart": null,
"messageDelta": null,
"messageComplete": null,
"toolCallStart": null,
"toolCallComplete": null
}
}