Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: orchestrator.set_classifier() doesn't updates classifier's agents #187

Open
brnaba-aws opened this issue Dec 27, 2024 · 0 comments
Open
Assignees
Labels

Comments

@brnaba-aws
Copy link
Contributor

Expected Behaviour

When adding agents to an orchestrator and then setting a classifier via the api: orchestrator.set_classifier()
The list of agents is not updated in the new selected classifier.
See set_classifier:

def set_classifier(self, intent_classifier: Classifier):
        self.classifier = intent_classifier

Current Behaviour

call orchestrator.set_classifier() once all the agents have been added and see that the classifier is not able to find an agent.

Code snippet

orchestrator.add_agent(weather_agent)
orchestrator.add_agent(tech_agent)
orchestrator.set_classifier(
        intent_classifier=AnthropicClassifier(
            AnthropicClassifierOptions(
                api_key="key")
        )
    )

Possible Solution

Set the classifier before adding agents.

Steps to Reproduce

orchestrator.add_agent(weather_agent)
orchestrator.add_agent(tech_agent)
orchestrator.set_classifier(
        intent_classifier=AnthropicClassifier(
            AnthropicClassifierOptions(
                api_key="key")
        )
    )
@brnaba-aws brnaba-aws added bug Something isn't working python priority-medium labels Dec 27, 2024
@brnaba-aws brnaba-aws self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant