Router
Problem: How can agents select a destination in which a task can be performed best?
Context: You are writing an e-commerce application. Your agent acts as a middleman guiding shopping agents to suitable sellers.
Solution:
- Attach a set of attributes (the agent’s profile) to each agent such as the language it uses to send and receive messages, or quality of service requirements.
- Destinations register desired profiles with a router that dispatches arriving agents to the destination that “best” matches the agent’s attributes.