awslabs / multi-agent-orchestrator

Flexible and powerful framework for managing multiple AI agents and handling complex conversations
https://awslabs.github.io/multi-agent-orchestrator/
Apache License 2.0
1.76k stars 117 forks source link

Feature request: Lambda Serverless context reduce Cold Start #78

Closed hghandri closed 1 week ago

hghandri commented 1 week ago

Use case

Hi,

I'm experiencing performance issues with cold starts after deploying the project to AWS Lambda using the Python 3.12 runtime on ARM architecture. After investigating, it appears the issue lies in importing modules, which cannot be easily minimized.

I understand that this project needs to be versatile, but it would be beneficial if we could load only the modules required for each specific context.

For example, I only use Bedrock and don’t need to load the entire Anthropic module due to the presence of the Anthropic Classifier. For reference, the Anthropic module takes around 0.7 seconds to load, which significantly impacts the initialization phase during cold starts.

Have you experienced the same thing?

Solution/User Experience

Perhaps into "init.py" on classifiers folder test if module "anthropic" is installed or not and then load or not Anthropic Classifier.

Alternative solutions

No response