Type Alias: CognitiveAgentErrorCode
@kortexya/reasoninglayer / CognitiveAgentErrorCode
Type Alias: CognitiveAgentErrorCode
Section titled “Type Alias: 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.
Remarks
Section titled “Remarks”agent_not_yours(403) — the caller is not the agent’s owner or a Space admin.addBelief,addGoalanddeleteAgentanswer 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. Engine9a0535d897and earlier answered the same limit with an uncoded503.
Example
Section titled “Example”const code: CognitiveAgentErrorCode = 'cognition_profile_unavailable';