A2aEngine.Types.TaskArtifactUpdateEvent (a2a_engine v0.1.0)

Copy Markdown View Source

A streaming event published when an artifact is generated or updated. Emitted during message/stream and tasks/resubscribe.

Wire shape requires kind: "artifact-update", taskId, contextId, artifact. Optional: append (concatenate to prior artifact with same id), lastChunk (final chunk marker).

Summary

Types

t()

@type t() :: %A2aEngine.Types.TaskArtifactUpdateEvent{
  append: boolean() | nil,
  artifact: A2aEngine.Types.Artifact.t(),
  context_id: String.t(),
  last_chunk: boolean() | nil,
  metadata: map() | nil,
  task_id: String.t()
}

Functions

from_map(m)

@spec from_map(map()) :: {:ok, t()} | {:error, term()}

to_map(e)

@spec to_map(t()) :: map()