Documentation
¶
Overview ¶
Package a2aevent contains utilities for working with a2a.Event types.
Index ¶
- func ApplyArtifactUpdate(base *a2a.Task, event *a2a.TaskArtifactUpdateEvent) (*a2a.Task, error)
- func ApplyStatusUpdate(base *a2a.Task, event *a2a.TaskStatusUpdateEvent) (*a2a.Task, error)
- func ApplyUpdate(task *a2a.Task, event a2a.Event) (*a2a.Task, error)
- func Recover(prev *a2a.Task, curr *a2a.Task) []a2a.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyArtifactUpdate ¶
ApplyArtifactUpdate returns a new a2a.Task with the event's artifact applied to the provided task. The input task is never modified.
func ApplyStatusUpdate ¶
ApplyStatusUpdate returns a new a2a.Task with the event's status applied to a copy of base. The input task is never modified.
func ApplyUpdate ¶
ApplyUpdate returns a new a2a.Task produced by applying the event to the provided task. The input task is never modified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.