Returns either a single agent object by ID, or a subset of agents by breed. To return all agents, use model.allagents.
var — str|int, required
varis a breed name, the function returns a list of all agents of that breed. If
varis an int, the function returns the agent with that id.
primitive — str, optional
varis a breed name,
primitivespecifies which primitive's breed to return. A value of
Nonewill select the first primitive in order, usually
'agent'unless that primitive has been removed or reordered.
Default value: None
Return Value — Agent|list[Agent]
Agent object with
var is an int; otherwise a list of
Agent objects with