policy

package
v0.0.0-...-dfb39b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Allowed       bool
	Reason        string
	SanitizedArgs map[string]any
}

func Evaluate

func Evaluate(ctx context.Context, agent *types.Agent, tool string, args ValueGetter, ownsTarget OwnershipFallback) Decision

type MapValues

type MapValues map[string]any

func (MapValues) Get

func (m MapValues) Get(key string) (any, bool)

func (MapValues) Keys

func (m MapValues) Keys() []string

func (MapValues) Set

func (m MapValues) Set(key string, val any)

type OwnershipFallback

type OwnershipFallback func(ctx context.Context, args ValueGetter) bool

type ValueGetter

type ValueGetter interface {
	Get(key string) (any, bool)
	Keys() []string
}

type ValueSetter

type ValueSetter interface {
	Set(key string, val any)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL