Prometheus Entity Management API
    Preparing search index...
    • useEntityDiff — compare the current live entity state against a captured baseline.

      Parameters

      Returns UseEntityDiffReturn

      const { diff, captureBaseline, restoreBaseline } = useEntityDiff({
      entityType: "Order",
      entityId: "ord_123",
      });

      // Before the agent edits, capture the baseline:
      captureBaseline();

      // After the agent has made changes, diff is populated:
      diff?.fields.filter(f => f.op !== "unchanged")