Interface: AgentSpec
@kortexya/reasoninglayer / AgentSpec
Interface: AgentSpec
Section titled “Interface: AgentSpec”Defined in: src/types/scheduling.ts:35
A single agent that may be assigned to slots.
Properties
Section titled “Properties”id:
string
Defined in: src/types/scheduling.ts:37
Caller-chosen identifier. Must be unique within the request.
maxAssignments
Section titled “maxAssignments”maxAssignments:
number
Defined in: src/types/scheduling.ts:48
Maximum number of slots this agent may be assigned across the full horizon.
restrictedToShift?
Section titled “restrictedToShift?”
optionalrestrictedToShift?: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).
roles?
Section titled “roles?”
optionalroles?: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.
unavailableDays?
Section titled “unavailableDays?”
optionalunavailableDays?: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.