Skip to content

Interface: SetActionReviewConfigRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Cognitive / SetActionReviewConfigRequest

Interface: SetActionReviewConfigRequest

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

Request to set the human-in-the-loop (HITL) action-review configuration for the authenticated tenant’s cognitive agents.

Remarks

The tenant is taken from the authenticated principal, never from the body — this request carries no tenantId.

Omitted optional fields fall back to the backend defaults: timeout 3600s, always-approve ["file_write", "file_delete", "web_post"], low-confidence threshold 0.3, and a maximum of 100 pending reviews.

Example

await client.cognitive.setActionReviewConfig({
enabled: true,
alwaysRequireApproval: ['file_delete'],
lowConfidenceThreshold: 0.4,
});

Properties

alwaysRequireApproval?

optional alwaysRequireApproval: string[] | null

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

Action sorts that always require approval.


defaultTimeoutSecs?

optional defaultTimeoutSecs: number | null

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

Default timeout for reviews, in seconds.


enabled

enabled: boolean

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

Enable HITL review for agent actions.


lowConfidenceThreshold?

optional lowConfidenceThreshold: number | null

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

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


maxPendingReviews?

optional maxPendingReviews: number | null

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

Maximum pending reviews before blocking new actions.


neverRequireApproval?

optional neverRequireApproval: string[] | null

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

Action sorts that never require approval (override).