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
2.13k stars 143 forks source link

Bug: Multiple instances of the orchestrator with default classifier #68

Closed cornelcroi closed 1 month ago

cornelcroi commented 1 month ago

Expected Behaviour

To have a new instance of the orchestrator when used with default value for classifier

Current Behaviour

The orchestrator becomes static

Code snippet

orchestrator = MultiAgentOrchestrator(options=OrchestratorConfig(
        LOG_AGENT_CHAT=True,
        LOG_CLASSIFIER_CHAT=True,
        LOG_CLASSIFIER_RAW_OUTPUT=True,
        LOG_CLASSIFIER_OUTPUT=True,
        LOG_EXECUTION_TIMES=True,
        MAX_RETRIES=3,
        USE_DEFAULT_AGENT_IF_NONE_IDENTIFIED=True,

        MAX_MESSAGE_PAIRS_PER_AGENT=10       
    ))

Possible Solution

Better handle the default values initialization in the init of the orchestrator

Steps to Reproduce

Instantiate the orchestrator several times. Issue easy to test with FastAPI.

brnaba-aws commented 1 month ago

Fixed in python 0.0.18