agentframework

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(_ context.Context, scope detect.Scope, cfg DetectorConfig) ([]model.Finding, error)

func DetectMany

func DetectMany(scope detect.Scope, configs []DetectorConfig) ([]model.Finding, error)

Types

type AgentSpec

type AgentSpec struct {
	Name             string   `json:"name" yaml:"name" toml:"name"`
	File             string   `json:"file" yaml:"file" toml:"file"`
	StartLine        int      `json:"start_line" yaml:"start_line" toml:"start_line"`
	EndLine          int      `json:"end_line" yaml:"end_line" toml:"end_line"`
	Tools            []string `json:"tools" yaml:"tools" toml:"tools"`
	DataSources      []string `json:"data_sources" yaml:"data_sources" toml:"data_sources"`
	AuthSurfaces     []string `json:"auth_surfaces" yaml:"auth_surfaces" toml:"auth_surfaces"`
	Deployment       []string `json:"deployment_artifacts" yaml:"deployment_artifacts" toml:"deployment_artifacts"`
	DataClass        string   `json:"data_class" yaml:"data_class" toml:"data_class"`
	ApprovalStatus   string   `json:"approval_status" yaml:"approval_status" toml:"approval_status"`
	ApprovalSource   string   `json:"approval_source" yaml:"approval_source" toml:"approval_source"`
	ProofRequirement string   `json:"proof_requirement" yaml:"proof_requirement" toml:"proof_requirement"`
	DynamicDiscovery bool     `json:"dynamic_discovery" yaml:"dynamic_discovery" toml:"dynamic_discovery"`
	KillSwitch       bool     `json:"kill_switch" yaml:"kill_switch" toml:"kill_switch"`
	AutoDeploy       bool     `json:"auto_deploy" yaml:"auto_deploy" toml:"auto_deploy"`
	HumanGate        bool     `json:"human_gate" yaml:"human_gate" toml:"human_gate"`
	DeploymentGate   string   `json:"deployment_gate" yaml:"deployment_gate" toml:"deployment_gate"`
}

type DetectorConfig

type DetectorConfig struct {
	DetectorID string
	Framework  string
	ConfigPath string
	Format     string
}

Jump to

Keyboard shortcuts

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