Getting Started
Learn how to create two agents and setup the communication using the eggai
SDK.
Key features:
- Agent Collaboration: Two agents working together in an event-driven environment.
- Asynchronous Execution: Agents are designed to process tasks concurrently, ensuring efficiency.
- Scalable Infrastructure: Powered by Kafka for reliable messaging and streaming.
Here is a simplified architecture overview:
The code for the example can be found here. Let's dive in.
Setup Instructions
Clone the EggAI repository:
Move into the examples/getting_started
folder:
Create and activate a virtual environment:
Install the required dependencies:
Run the Example
Expected output:
[ORDER AGENT]: Received request to create order. {'event_name': 'order_requested', 'payload': {'product': 'Laptop', 'quantity': 1}}
[ORDER AGENT]: Received order created event. {'event_name': 'order_created', 'payload': {'product': 'Laptop', 'quantity': 1}}
[EMAIL AGENT]: Received order created event. {'event_name': 'order_created', 'payload': {'product': 'Laptop', 'quantity': 1}}
What happens:
- Agent 1 sends a message to Agent 2.
- Agent 2 processes the message and sends a response.
- The framework handles message passing, retries, and logging.
Congratulations! You've successfully run your first EggAI Multi-Agent application.
Next Steps
Ready to explore further? Check out:
- Advanced Examples: Discover more complex use cases in the examples folder.
- Contribution Guidelines: Get involved and help improve EggAI!
- GitHub Issues: Submit a bug or feature request.
- Documentation: Refer to the official docs for deeper insights.