Table of Contents

Class WorkflowHistoryObserver

Namespace
JD.AI.Workflows.History
Assembly
JD.AI.Workflows.dll

Observes workflow executions and ingests them into the workflow history graph. Handles flattening of nested steps, computing fingerprints, and recording transitions (both sequential and sub-step relationships).

public sealed class WorkflowHistoryObserver : IWorkflowHistoryObserver
Inheritance
WorkflowHistoryObserver
Implements
Inherited Members

Constructors

WorkflowHistoryObserver(IWorkflowHistoryGraphStore)

public WorkflowHistoryObserver(IWorkflowHistoryGraphStore store)

Parameters

store IWorkflowHistoryGraphStore

Methods

IngestRunAsync(AgentWorkflowDefinition, WorkflowBridgeResult, CancellationToken)

Ingest a completed workflow run into the history graph.

public Task IngestRunAsync(AgentWorkflowDefinition definition, WorkflowBridgeResult result, CancellationToken ct = default)

Parameters

definition AgentWorkflowDefinition

The workflow definition that was executed.

result WorkflowBridgeResult

The result of the workflow execution.

ct CancellationToken

Cancellation token.

Returns

Task