Understanding state synchronization between agents and frontends in AG-UI
STATE_SNAPSHOT
event delivers a complete representation of an agent’s
current state:
STATE_SNAPSHOT
event, it should replace its
existing state model entirely with the contents of the snapshot.
STATE_DELTA
event delivers incremental updates to the state using JSON
Patch format (RFC 6902):
STATE_SNAPSHOT
.
fast-json-patch
library: