Skip to main content

REFERENCE

Developer Reference

Authentication, APIs, SDKs, Flow Agent processors and parameter resolution, in full.

asgard.process.complete

asgard.process.complete marks the completion of a process. The processComplete object in fact lists the full set of parameters the process received back, which matters both for debugging and for building a custom UI.

  1. Characteristics​

    • When it fires: as each process within the request completes
    • What it does: shows how the process ran and what parameters came back
    • How often: once per request
  2. Full example​

    {
    "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
    }
    }

Ready to get started?

Want to see how Asgard fits your team? Talk to us.

Contact us