-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from brnaba-aws/main
Split MAO python package dependency into feature (anthropic and openai) and removed Bedrock dependency in Classifier and Orchestrator
- Loading branch information
Showing
18 changed files
with
289 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 28 additions & 10 deletions
38
python/src/multi_agent_orchestrator/classifiers/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,38 @@ | ||
""" | ||
Code for Classifier. | ||
""" | ||
|
||
|
||
from .classifier import Classifier, ClassifierResult | ||
from .anthropic_classifier import AnthropicClassifier, AnthropicClassifierOptions | ||
from .bedrock_classifier import BedrockClassifier, BedrockClassifierOptions | ||
from .openai_classifier import OpenAIClassifier, OpenAIClassifierOptions | ||
|
||
try: | ||
from .anthropic_classifier import AnthropicClassifier, AnthropicClassifierOptions | ||
_ANTHROPIC_AVAILABLE = True | ||
except Exception as e: | ||
_ANTHROPIC_AVAILABLE = False | ||
|
||
try: | ||
from .openai_classifier import OpenAIClassifier, OpenAIClassifierOptions | ||
_OPENAI_AVAILABLE = True | ||
except Exception as e: | ||
_OPENAI_AVAILABLE = False | ||
|
||
|
||
|
||
__all__ = [ | ||
"AnthropicClassifier", | ||
"AnthropicClassifierOptions", | ||
"BedrockClassifier", | ||
"BedrockClassifierOptions", | ||
"Classifier", | ||
"ClassifierResult", | ||
"OpenAIClassifier", | ||
"OpenAIClassifierOptions", | ||
"BedrockClassifier", | ||
"BedrockClassifierOptions" | ||
] | ||
|
||
if _ANTHROPIC_AVAILABLE: | ||
__all__.extend([ | ||
"AnthropicClassifier", | ||
"AnthropicClassifierOptions" | ||
]) | ||
|
||
if _OPENAI_AVAILABLE: | ||
__all__.extend([ | ||
"OpenAIClassifier", | ||
"OpenAIClassifierOptions" | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.