a2aevent

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package a2aevent contains utilities for working with a2a.Event types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyArtifactUpdate

func ApplyArtifactUpdate(base *a2a.Task, event *a2a.TaskArtifactUpdateEvent) (*a2a.Task, error)

ApplyArtifactUpdate returns a new a2a.Task with the event's artifact applied to the provided task. The input task is never modified.

func ApplyStatusUpdate

func ApplyStatusUpdate(base *a2a.Task, event *a2a.TaskStatusUpdateEvent) (*a2a.Task, error)

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

func ApplyUpdate(task *a2a.Task, event a2a.Event) (*a2a.Task, error)

ApplyUpdate returns a new a2a.Task produced by applying the event to the provided task. The input task is never modified.

func Recover

func Recover(prev *a2a.Task, curr *a2a.Task) []a2a.Event

Recover attempts to return a list of events which when applied to the first argument bring it to the state of the second argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL