Skip to content

Type Alias: AgentBeliefErrorCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AgentBeliefErrorCode

AgentBeliefErrorCode = "agent_belief_operation_unsupported" | "agent_belief_authoring_required" | "agent_belief_ownership_refused" | "agent_belief_admission_incomplete"

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

The code of a coded agent-belief refusal, read with errorBodyCode.

  • agent_belief_operation_unsupported (422) — the operation cannot yet publish native belief results under the owner scope. A cognitive cycle (basic or integrated) on a tenant that holds a native agent belief answers it, and changes nothing.
  • agent_belief_authoring_required (422) — the write would author an agent belief outside the managed belief route.
  • agent_belief_ownership_refused (409) — any other belief admission refusal: a missing, rebound or foreign referenced term, a wrong or conflicting owner, an undeclared content sort, an invalid confidence, or unsealed or orphaned ownership. The message names the cause.
  • agent_belief_admission_incomplete (503) — the admission exceeded a bound or could not capture the native state; nothing was admitted.

The cognitive routes, and the inference and residuation routes that read agent beliefs, answer these codes.

const code: AgentBeliefErrorCode = 'agent_belief_operation_unsupported';