Skip to content

Type Alias: CognitiveAgentErrorCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CognitiveAgentErrorCode

CognitiveAgentErrorCode = "agent_not_yours" | "cognition_profile_unavailable"

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

The code of a coded refusal of the cognitive agent routes, read with errorBodyCode.

  • agent_not_yours (403) — the caller is not the agent’s owner or a Space admin. addBelief, addGoal and deleteAgent answer it.
  • cognition_profile_unavailable (403) — the request carries a gateway authorization context, which shared-source cognition does not serve: it needs principal-bound historical provenance (reasoninglayer#1273). Every agent route answers it. Engine 9a0535d897 and earlier answered the same limit with an uncoded 503.
const code: CognitiveAgentErrorCode = 'cognition_profile_unavailable';