Eve is a multipurpose, web based agent platform, in which existing web technologies are used. They provide an environment in which software agents can be developed. Eve is defined as an agent model and a communication protocol, which can be implemented in many programming languages and runtime infrastructures. This part of the documentation provides an introduction into these generic elements of Eve.
For a good understanding of Eve, it is important to look at its concept Agent. The basic definition of agent is: A software entity that represents existing, external, sometimes abstract, entities. Examples of such entities are: human beings, physical objects, abstract goals, etc. To be able to function, the agent needs to be able to run independently of the entity it represents. This autonomous behavior requires a basic set of capabilities, which Eve provides for its agents. These features are:
The main reason for providing a separate memory capability to the agents is that, in most implementations, Eve agents have a request based life-cycle. The agent is only instantiated to handle a single incoming request and is destroyed again as soon as the request has been handled. Only the externally stored state is kept between requests. The agent identity is formed by the address of its state, not by an in-memory, running instance of some class. The scheduling capability provides requests at scheduled times, thus instantiating the agent at that time.
This model mimics the way modern webservers handle servlets, allowing any servlet to become an Eve agent. Out of the box, a single agent (=single state) can therefore execute requests in parallel, multi-threaded, and (depending on the state-implementation) distributed among multiple servers. This model also allows for easier handling of asynchronous agent designs.
The agent model is based on request driven instantiation. The requests, that trigger this instantiation, are JSON-RPC encoded. In the Protocol section, this protocol is further defined and described. Using JSON as its base, Eve is highly programming language independent; for most mainstream languages there are existing JSON handling libraries. Any implementation that adheres to the described protocol and basic agent model, is therefore considered an Eve implementation. This high level definition allowed effective reuse of existing tools and protocols in the implementation of Eve.
An important part of any agent platform is its addressing and directory service. In line with maximum reuse of existing protocols and runtime environments, Eve also reuses existing addressing frameworks for its agents: The HTTP transport services assigns a normal public URL for each agent, allowing using normal DNS servers as directory services. Similarly, the XMPP transport uses the JIDs as agent addresses, allowing the server roster to be used as directory service.