messageDelta static method

ZorphyPatch<AgentSessionDocument> messageDelta(
  1. String sessionId,
  2. AgentMessageDelta delta, {
  3. AgentSessionDocument? base,
})

The patch for a single message_update delta.

Pass base (the stored session) to append to the existing transcript.

Implementation

static ZorphyPatch<AgentSessionDocument> messageDelta(
  String sessionId,
  AgentMessageDelta delta, {
  AgentSessionDocument? base,
}) => project(sessionId, [delta], base: base);