Skip to content

Interface: AgentSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AgentSpec

Defined in: src/types/scheduling.ts:35

A single agent that may be assigned to slots.

id: string

Defined in: src/types/scheduling.ts:37

Caller-chosen identifier. Must be unique within the request.


maxAssignments: number

Defined in: src/types/scheduling.ts:48

Maximum number of slots this agent may be assigned across the full horizon.


optional restrictedToShift?: number | null

Defined in: src/types/scheduling.ts:58

When present, the agent may only be assigned to this shift index (all other shifts become unavailable).


optional roles?: string[]

Defined in: src/types/scheduling.ts:43

Role tags this agent carries (e.g. "icu", "senior"). Used to satisfy per-role minimum-demand constraints. Defaults to an empty array if omitted.


optional unavailableDays?: number[]

Defined in: src/types/scheduling.ts:53

Day indices on which the agent is unavailable for any shift. Defaults to an empty array if omitted.