Skip to content

Interface: ActionReviewConfig

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ActionReviewConfig

Defined in: src/types/cognitive.ts:1406

The tenant’s stored human-in-the-loop (HITL) action-review configuration.

Returned by getActionReviewConfig(). Every field is present. A tenant that has never been configured reads as disabled, with empty approval lists, a low-confidence threshold of 0.5, a 3600s timeout and a cap of 100 pending reviews. These values differ from the defaults a PUT applies to omitted fields (see SetActionReviewConfigRequest).

The type is assignable to SetActionReviewConfigRequest, so a read value can be edited and written back whole.

const config = await client.cognitive.getActionReviewConfig();
await client.cognitive.setActionReviewConfig({ ...config, lowConfidenceThreshold: 0.4 });

alwaysRequireApproval: string[]

Defined in: src/types/cognitive.ts:1410

Action sorts that always require approval.


defaultTimeoutSecs: number

Defined in: src/types/cognitive.ts:1414

Seconds a new review waits for a decision before it times out.


enabled: boolean

Defined in: src/types/cognitive.ts:1408

Whether HITL review is enabled for agent actions.


lowConfidenceThreshold: number

Defined in: src/types/cognitive.ts:1416

Confidence threshold below which actions require approval (0.0 to 1.0).


maxPendingReviews: number

Defined in: src/types/cognitive.ts:1418

Maximum pending reviews in the tenant’s queue before agent actions are refused.


neverRequireApproval: string[]

Defined in: src/types/cognitive.ts:1412

Action sorts that never require approval (override).