isEmpty property

  1. @override
bool get isEmpty
override

Whether this patch carries no change at all.

An empty patch must be a zero-copy no-op: apply returns the target itself.

Implementation

@override
bool get isEmpty {
  return id.isUnchanged &&
      status.isUnchanged &&
      messages.isUnchanged &&
      toolCalls.isUnchanged &&
      activeTool.isUnchanged &&
      turns.isUnchanged;
}