Interface: SetGoalStatusRequest
@kortexya/reasoninglayer / SetGoalStatusRequest
Interface: SetGoalStatusRequest
Section titled “Interface: SetGoalStatusRequest”Defined in: src/types/cognitive.ts:1481
Request to transition a goal to a terminal status.
Remarks
Section titled “Remarks”The tenant is taken from the authenticated principal, never from the body —
this request carries no tenantId. The goal must belong to agentId.
Example
Section titled “Example”await client.cognitive.setGoalStatus({ agentId, goalId, status: 'completed',});Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: src/types/cognitive.ts:1483
Agent that owns the goal (UUID).
goalId
Section titled “goalId”goalId:
string
Defined in: src/types/cognitive.ts:1485
Goal term ID as returned by addGoal (UUID).
status
Section titled “status”status:
GoalStatusUpdate
Defined in: src/types/cognitive.ts:1487
Terminal status to apply.