Versions in this module Expand all Collapse all v0 v0.4.10 Jul 30, 2026 Changes in this version + func Catalog(option ...Options) map[string]extensions.Factory + func Control(settings *config.SettingsManager) extensions.Factory + func Description(name string) string + func MemoryWithStore(store memorysdk.Store) extensions.Factory + func Names() []string + type Action string + const Allow + const Ask + const Deny + type Decision struct + Action Action + Input string + Matcher string + Mode string + Resolution string + Resolved Action + Rule int + Time int64 + Tool string + type Options struct + AgentDir string + HTTPClient *http.Client + Policy *Policy + Settings *config.SettingsManager + StreamFn agent.StreamFn + type Policy struct + AskFallback Action + Authorizer func(context.Context, ToolCallInfo) (Action, error) + Mode string + Rules []Rule + func (policy *Policy) Evaluate(ctx context.Context, info ToolCallInfo) Decision + func (policy *Policy) SetMode(mode string) + type Rule struct + Action Action + Command string + Path string + Tool string + type ToolCallInfo struct + Args any + CWD string + SessionID string + Tool string