mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
795ee362ea
Remove the legacy EventKind/Event envelope mapping and let agent event emission build pkg/events.Event values directly. Keep HookMeta as the shared hook metadata shape and preserve legacy observe string aliases by mapping them to runtime event kinds. Validation: GOCACHE=/tmp/picoclaw-go-cache go test ./pkg/agent; make lint
15 lines
333 B
Go
15 lines
333 B
Go
package agent
|
|
|
|
// HookMeta contains correlation fields shared by agent hook requests and
|
|
// runtime events emitted from turn processing.
|
|
type HookMeta struct {
|
|
AgentID string
|
|
TurnID string
|
|
ParentTurnID string
|
|
SessionKey string
|
|
Iteration int
|
|
TracePath string
|
|
Source string
|
|
turnContext *TurnContext
|
|
}
|