package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Feb 16, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Action is the policy decision for a tool execution request.
const (
ActionAllow Action = "allow"
ActionDeny Action = "deny"
ActionRequireApproval Action = "require_approval"
)
type Config struct {
Mode Mode
RequireApproval []string
}
Config contains policy settings required by the evaluator.
Decision is the deterministic policy result.
type Evaluator struct {
}
Evaluator performs pure policy decisions.
NewEvaluator builds a deterministic, side-effect free evaluator.
Evaluate returns a deterministic decision for the given input.
type Input struct {
ToolName string
}
Input is the minimum evaluation context.
Mode controls evaluator behavior.
const (
ModeStrict Mode = "strict"
ModeRelaxed Mode = "relaxed"
ModeOff Mode = "off"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.