A2aEngine.Types.TaskStatusUpdateEvent (a2a_engine v0.1.0)

Copy Markdown View Source

A streaming event published when a task's status changes. Emitted during message/stream and tasks/resubscribe.

Wire shape requires kind: "status-update", taskId, contextId, status, final (boolean — true if this is the last event in the stream).

Summary

Types

t()

@type t() :: %A2aEngine.Types.TaskStatusUpdateEvent{
  context_id: String.t(),
  final: boolean(),
  metadata: map() | nil,
  status: A2aEngine.Types.TaskStatus.t(),
  task_id: String.t()
}

Functions

from_map(m)

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

to_map(e)

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