Constraint System Kit

Hard and soft constraints: physical, legal, economic, and operational limits.

0/6 evaluated

Configuration

Constraint Evaluation

Hard

0/3

Soft

0/3

Violations

0

Budget limit ($50k)hard
0%
Legal compliancehard
0%
Data residencyhard
0%
Prefer local datasoft
0%
Minimize latencysoft
0%
Prefer cached resultssoft
0%

Integration Code

import { createConstraintSystem } from 'agent-tools-kit/meta-governance'

const constraints = createConstraintSystem({ type: 'mixed' })
constraints.addHard('budget-limit', { max: 50000 })
constraints.addSoft('prefer-local-data', { penalty: 0.1 })

const result = await constraints.evaluate(agent)
if (result.violations.length > 0) {
  constraints.block(agent)
}