Patent ID: 8326914

Claim:
An agent server, comprising: a processor; and a memory storing instructions, execution of which causes the processor to perform operations comprising: dividing processing time of the agent server into a plurality of time slices of predetermined duration, receiving, at the agent server, user data for configuring a first agent of a plurality of agents to perform a first task by using a service and by consuming a first time slice in the plurality of time slices, wherein each agent in the plurality of agents includes an event handler configured to direct each agent upon an occurrence of an event, and wherein each event handler includes a plurality of portions that are separately executable during different time slices in the plurality of time slices, selecting the first agent from the plurality of agents upon the occurrence of the event, allocating the first time slice to the first agent, executing a first portion of the event handler during the first time slice, and monitoring consumption of the first time slice by the first agent using a service wrapper corresponding to the service, wherein the service wrapper is configured to provide the agent access to the service.