Documentation
¶
Overview ¶
Package observer lets an operator watch every task of an a2a-go server without touching the agent's executor.
a2a-go sends a push notification for each task event to every config that push.ConfigStore.List returns for that task. Store wraps the server's ConfigStore and appends one more config, the operator's subscriber, so the operator's console receives every event while client-registered webhooks keep working unchanged.
The subscriber also shows up when a client lists the task's push configs. A runtime that owns the task store should deliver to its own console directly instead.
Index ¶
Constants ¶
const SubscriberID = "operator-observer"
SubscriberID is the push config ID used for the operator's subscriber.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
push.ConfigStore
// contains filtered or unexported fields
}
Store is a push.ConfigStore that adds the operator's subscriber to every task.