-
Notifications
You must be signed in to change notification settings - Fork 732
Expand file tree
/
Copy path__init__.py
More file actions
104 lines (88 loc) · 2.77 KB
/
Copy path__init__.py
File metadata and controls
104 lines (88 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
"""
Code for Agents.
"""
from .agent import Agent, AgentOptions, AgentCallbacks, AgentProcessingResult, AgentResponse, AgentStreamResponse
try:
from .lambda_agent import LambdaAgent, LambdaAgentOptions
from .bedrock_llm_agent import BedrockLLMAgent, BedrockLLMAgentOptions
from .lex_bot_agent import LexBotAgent, LexBotAgentOptions
from .amazon_bedrock_agent import AmazonBedrockAgent, AmazonBedrockAgentOptions
from .comprehend_filter_agent import ComprehendFilterAgent, ComprehendFilterAgentOptions
from .bedrock_translator_agent import BedrockTranslatorAgent, BedrockTranslatorAgentOptions
from .chain_agent import ChainAgent, ChainAgentOptions
from .bedrock_inline_agent import BedrockInlineAgent, BedrockInlineAgentOptions
from .bedrock_flows_agent import BedrockFlowsAgent, BedrockFlowsAgentOptions
_AWS_AVAILABLE = True
except ImportError:
_AWS_AVAILABLE = False
try:
from .anthropic_agent import AnthropicAgent, AnthropicAgentOptions
_ANTHROPIC_AVAILABLE = True
except ImportError:
_ANTHROPIC_AVAILABLE = False
try:
from .openai_agent import OpenAIAgent, OpenAIAgentOptions
_OPENAI_AVAILABLE = True
except ImportError:
_OPENAI_AVAILABLE = False
try:
from .gemini_agent import GeminiAgent, GeminiAgentOptions
_GEMINI_AVAILABLE = True
except ImportError:
_GEMINI_AVAILABLE = False
try:
from .strands_agent import StrandsAgent
_STRANDS_AGENTS_AVAILABLE = True
except ImportError:
_STRANDS_AGENTS_AVAILABLE = False
from .supervisor_agent import SupervisorAgent, SupervisorAgentOptions
__all__ = [
'Agent',
'AgentOptions',
'AgentCallbacks',
'AgentProcessingResult',
'AgentResponse',
'AgentStreamResponse',
'SupervisorAgent',
'SupervisorAgentOptions'
]
if _AWS_AVAILABLE :
__all__.extend([
'LambdaAgent',
'LambdaAgentOptions',
'BedrockLLMAgent',
'BedrockLLMAgentOptions',
'LexBotAgent',
'LexBotAgentOptions',
'AmazonBedrockAgent',
'AmazonBedrockAgentOptions',
'ComprehendFilterAgent',
'ComprehendFilterAgentOptions',
'ChainAgent',
'ChainAgentOptions',
'BedrockTranslatorAgent',
'BedrockTranslatorAgentOptions',
'BedrockInlineAgent',
'BedrockInlineAgentOptions',
'BedrockFlowsAgent',
'BedrockFlowsAgentOptions'
])
if _ANTHROPIC_AVAILABLE:
__all__.extend([
'AnthropicAgent',
'AnthropicAgentOptions'
])
if _OPENAI_AVAILABLE:
__all__.extend([
'OpenAIAgent',
'OpenAIAgentOptions'
])
if _GEMINI_AVAILABLE:
__all__.extend([
'GeminiAgent',
'GeminiAgentOptions'
])
if _STRANDS_AGENTS_AVAILABLE:
__all__.extend([
'StrandsAgent',
])