-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
55 lines (54 loc) · 1.68 KB
/
__init__.py
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
try:
from backend.agents.BaseAgent import BaseAgent
from backend.agents.AgentManager import AgentManager, SessionConfig
from backend.agents.action.main import Action
from backend.agents.observation.main import Observation
from backend.agents.utils.schemas import ObservationType, OBS_DICT
from backend.agents.utils.exceptions import (
EnvironmentError,
ProcessingError,
StepError,
StepLimitExceeded,
StopExecution,
VLMPredictionError
)
from backend.agents.utils.utils import Timer, need_visualization
from backend.agents.hub.PromptAgent.main import PromptAgent
from backend.agents.hub.Anthropic.main import AnthropicComputerDemoAgent
except ImportError:
from BaseAgent import BaseAgent
from utils.schemas import ObservationType, OBS_DICT
from utils.exceptions import (
EnvironmentError,
ProcessingError,
StepError,
StepLimitExceeded,
StopExecution,
VLMPredictionError
)
from utils import Timer, need_visualization
from hub.PromptAgent.main import PromptAgent
from hub.Anthropic.main import AnthropicComputerDemoAgent
from test import test_anthropic_agent, test_prompt_agent
from test_env import *
# Make these available when importing from agents
__all__ = [
'BaseAgent',
'AgentManager',
'SessionConfig',
'Action',
'Observation',
'ObservationType',
'OBS_DICT',
'EnvironmentError',
'ProcessingError',
'StepError',
'StepLimitExceeded',
'StopExecution',
'VLMPredictionError',
'Timer',
'need_visualization',
'PromptAgent',
'AnthropicComputerDemoAgent',
'DesktopEnv',
]