Skip to content

Interface: AddGoalRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AddGoalRequest

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

Request to add a goal to an agent.

agentId: string

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

Agent ID (UUID).


optional goal?: CognitiveGoalDto | null

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

Structured goal. Supply exactly one of goal and naturalLanguage.


optional measuredOutcome?: MeasuredOutcome | null

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

Measured Boolean postcondition of a structured goal.

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).


optional naturalLanguage?: string | null

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

Intent translated by the native model; its clauses are not observed facts.


optional planningActions?: string[]

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

Declared native action terms for this goal’s planning contract.


optional priority?: number

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

Priority (higher = more important).


optional sortHints?: string[]

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

Declared sort names used to disambiguate the intent.


optional status?: string

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

Initial status (default: “pending”).


tenantId: string

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

Tenant ID (UUID).