Skip to content
中文

PolicyAssessment ​

KIT · interface · Type contract

Result of assessing every registered policy against one input.

Import ​

ts
import type { PolicyAssessment } from '@jangts/agent-core/kits/policies';
js
/** @typedef {import('@jangts/agent-core/kits/policies').PolicyAssessment} PolicyAssessment */

Other public entry points:@jangts/agent-core, @jangts/agent-core/types, @jangts/agent-core/structs, @jangts/agent-core/kits/policies, @jangts/agent-core/kits.

Definition ​

ts
interface PolicyAssessment<Kind>

Type parameters ​

Type parameterConstraintDefault type
Kindstringstring

Field structure ​

FieldTypeRequiredDescription
requiredbooleanRequiredRead-only. True when at least one policy matched.
reasonsreadonly string[]RequiredRead-only. Ids of the matched policies, in registration order.
kindsreadonly Kind[]RequiredRead-only. Distinct kinds of the matched policies, in first-match order.

Using the type ​

When using this type, choose type arguments from the table above; parameters with defaults may be omitted.

API reference, usage examples and developer guides.