Interface: AddGoalRequest
@kortexya/reasoninglayer / AddGoalRequest
Interface: AddGoalRequest
Section titled “Interface: AddGoalRequest”Defined in: src/types/cognitive.ts:580
Request to add a goal to an agent.
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: src/types/cognitive.ts:584
Agent ID (UUID).
optionalgoal?:CognitiveGoalDto|null
Defined in: src/types/cognitive.ts:588
Structured goal. Supply exactly one of goal and naturalLanguage.
measuredOutcome?
Section titled “measuredOutcome?”
optionalmeasuredOutcome?:MeasuredOutcome|null
Defined in: src/types/cognitive.ts:606
Measured Boolean postcondition of a structured goal.
Remarks
Section titled “Remarks”Without it the goal has no outcome contract: a cycle defers it instead of guessing success, and no prediction error is recorded. With it, the goal is achieved or failed only on an admitted measurement (CognitiveClient.admitGoalObservation).
naturalLanguage?
Section titled “naturalLanguage?”
optionalnaturalLanguage?:string|null
Defined in: src/types/cognitive.ts:590
Intent translated by the native model; its clauses are not observed facts.
planningActions?
Section titled “planningActions?”
optionalplanningActions?:string[]
Defined in: src/types/cognitive.ts:582
Declared native action terms for this goal’s planning contract.
priority?
Section titled “priority?”
optionalpriority?:number
Defined in: src/types/cognitive.ts:594
Priority (higher = more important).
sortHints?
Section titled “sortHints?”
optionalsortHints?:string[]
Defined in: src/types/cognitive.ts:592
Declared sort names used to disambiguate the intent.
status?
Section titled “status?”
optionalstatus?:string
Defined in: src/types/cognitive.ts:596
Initial status (default: “pending”).
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/cognitive.ts:586
Tenant ID (UUID).