Python Local Demo
Prerequisites
- Python 3.12 or later
- AWS account with appropriate permissions
- Basic familiarity with Python async/await patterns
Quick Setup
- Create a new project:
- Install dependencies:
Implementation
-
Create a new file named
quickstart.py
: -
Initialize the orchestrator:
- Set up agent callbacks and add an agent:
- Implement the main logic:
- Run the application:
Implementation Notes
- Implements streaming responses by default
- Uses default Bedrock Classifier with
anthropic.claude-3-5-sonnet-20240620-v1:0
- Includes interactive command-line interface
- Handles session management with UUID generation
Next Steps
- Add additional specialized agents
- Implement persistent storage
- Customize the classifier configuration
- Add error handling and retry logic
Ready to build your own multi-agent chat application? Check out the complete source code in our GitHub repository.