Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + func Check(event string, he config.HookEntry) error + type Decision struct + AdditionalContext string + UpdatedInput json.RawMessage + type EventType string + const Notification + const PostStopValidation + const PostToolUse + const PreToolUse + const SessionEnd + const SessionStart + const UserPromptSubmit + type Payload struct + Args json.RawMessage + Event EventType + IsError bool + Message string + Output json.RawMessage + Prompt string + Tool string + type Runner struct + func New(sessionID string, model func() agentcore.Model) *Runner + func (r *Runner) PostToolUse() agentcore.ToolMiddleware + func (r *Runner) PreToolUse() agentcore.ToolMiddleware + func (r *Runner) RunNotification(message string) + func (r *Runner) RunSessionEnd() + func (r *Runner) RunSessionStart() + func (r *Runner) RunUserPromptSubmit(ctx context.Context, prompt string) (Decision, error) + func (r *Runner) Set(cfg config.HooksConfig) + type Validation struct + func NewValidation(r *Runner) *Validation + func (v *Validation) Check(ctx context.Context) string + func (v *Validation) Track(ctx context.Context, call agentcore.ToolCall, next agentcore.ToolFunc) (agentcore.Result, error)