File tree 5 files changed +37
-8
lines changed
5 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language goveself.rning permissions and
13
13
# limitations under the License.
14
14
15
- from pydantic import config
16
- from rai .agents import ROS2StateBasedAgent , StateBasedConfig , wait_for_shutdown
15
+ from rai . agents . ros2 import ROS2StateBasedAgent
16
+ from rai .agents import StateBasedConfig , wait_for_shutdown
17
17
from rai .aggregators .ros2 import (
18
18
ROS2ImgVLMDiffAggregator ,
19
19
ROS2LogsAggregator ,
Original file line number Diff line number Diff line change 15
15
from rai .agents .conversational_agent import create_conversational_agent
16
16
from rai .agents .react_agent import ReActAgent
17
17
from rai .agents .runner import AgentRunner , wait_for_shutdown
18
- from rai .agents .state_based_agent import ROS2StateBasedAgent , StateBasedConfig
18
+ from rai .agents .base_state_based_agent import BaseStateBasedAgent , StateBasedConfig
19
19
from rai .agents .tool_runner import ToolRunner
20
20
21
21
__all__ = [
22
22
"AgentRunner" ,
23
23
"ReActAgent" ,
24
- "ROS2StateBasedAgent " ,
24
+ "BaseStateBasedAgent " ,
25
25
"StateBasedConfig" ,
26
26
"ToolRunner" ,
27
27
"create_conversational_agent" ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class StateBasedConfig(BaseModel):
44
44
)
45
45
46
46
47
- class StateBasedAgent (ReActAgent , ABC ):
47
+ class BaseStateBasedAgent (ReActAgent , ABC ):
48
48
"""
49
49
Agent that runs aggregators (config.aggregators) every config.time_interval seconds.
50
50
Aggregators are registered to their sources using
Original file line number Diff line number Diff line change
1
+ # Copyright (C) 2024 Robotec.AI
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ from .state_based_agent import ROS2StateBasedAgent
15
+
16
+ __all__ = ["ROS2StateBasedAgent" ]
Original file line number Diff line number Diff line change
1
+ # Copyright (C) 2025 Robotec.AI
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
2
- from rai .agents . state_based_agent import StateBasedAgent
3
- from rai .communication .ros2 . connectors . connector import ROS2Connector
15
+ from rai .agents import BaseStateBasedAgent
16
+ from rai .communication .ros2 import ROS2Connector
4
17
5
- class ROS2StateBasedAgent (StateBasedAgent ):
18
+ class ROS2StateBasedAgent (BaseStateBasedAgent ):
6
19
def setup_connector (self ):
7
20
return ROS2Connector ()
You can’t perform that action at this time.
0 commit comments