Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jun 22, 2026 Changes in this version + func ExecutePost(ctx context.Context, hooks []ToolHook, input ToolHookInput) []types.Message + type PreExecutionResult struct + ExtraMessages []types.Message + Metadata map[string]any + Stop *ToolHookStop + UpdatedInput map[string]any + func ExecutePre(ctx context.Context, hooks []ToolHook, input ToolHookInput) PreExecutionResult + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Add(hook ToolHook) + func (r *Registry) ByStage(stage ToolHookStage) []ToolHook + func (r *Registry) Post() []ToolHook + func (r *Registry) Pre() []ToolHook + type ToolHook struct + Execute func(ctx context.Context, input ToolHookInput) ToolHookResult + ID string + Priority int + Stage ToolHookStage + type ToolHookInput struct + Input map[string]any + ToolCtx tool.ToolUseContext + ToolName string + ToolUseID string + type ToolHookResult struct + ExtraMessages []types.Message + Metadata map[string]any + Stop *ToolHookStop + UpdatedInput map[string]any + type ToolHookStage string + const ToolHookStagePost + const ToolHookStagePre + type ToolHookStop struct + Content string + IsError bool