Creates an onEvent callback that bridges graph events to the audit trail. Pass the returned function as onEvent in GraphExecuteOptions.
onEvent
const trail = createAuditTrail();await executeGraph(graph, inputs, { onEvent: createGraphAuditBridge(trail) }); Copy
const trail = createAuditTrail();await executeGraph(graph, inputs, { onEvent: createGraphAuditBridge(trail) });
Creates an onEvent callback that bridges graph events to the audit trail. Pass the returned function as
onEventin GraphExecuteOptions.