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