Skip to content

Commit 1693cf5

Browse files
Extracted RolePlaying to societies subpackage (camel-ai#176)
1 parent 8020e20 commit 1693cf5

File tree

11 files changed

+28
-10
lines changed

11 files changed

+28
-10
lines changed

apps/agents/agents.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
import tenacity
2929

3030
from apps.agents.text_utils import split_markdown_code
31-
from camel.agents import RolePlaying, TaskSpecifyAgent
31+
from camel.agents import TaskSpecifyAgent
3232
from camel.messages import AssistantChatMessage
33+
from camel.societies import RolePlaying
3334

3435
REPO_ROOT = os.path.realpath(
3536
os.path.join(os.path.dirname(os.path.abspath(__file__)), "../.."))

camel/agents/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from .tool_agents.base import BaseToolAgent
1919
from .tool_agents.hugging_face_tool_agent import HuggingFaceToolAgent
2020
from .embodied_agent import EmbodiedAgent
21-
from .role_playing import RolePlaying
2221

2322
__all__ = [
2423
'BaseAgent',
@@ -29,5 +28,4 @@
2928
'BaseToolAgent',
3029
'HuggingFaceToolAgent',
3130
'EmbodiedAgent',
32-
'RolePlaying',
3331
]

camel/societies/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2+
# Licensed under the Apache License, Version 2.0 (the “License”);
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an “AS IS” BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
14+
from .role_playing import RolePlaying
15+
16+
__all__ = [
17+
'RolePlaying',
18+
]
File renamed without changes.

examples/ai_society/role_playing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
1414
from colorama import Fore
1515

16-
from camel.agents import RolePlaying
16+
from camel.societies import RolePlaying
1717
from camel.utils import print_text_animated
1818

1919

examples/ai_society/role_playing_multiprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from colorama import Fore
2020

21-
from camel.agents import RolePlaying
2221
from camel.configs import ChatGPTConfig
22+
from camel.societies import RolePlaying
2323
from camel.typing import TaskType
2424
from camel.utils import download_tasks
2525

examples/ai_society/role_playing_with_critic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
1414
from colorama import Fore
1515

16-
from camel.agents import RolePlaying
1716
from camel.configs import ChatGPTConfig
17+
from camel.societies import RolePlaying
1818
from camel.utils import print_text_animated
1919

2020

examples/ai_society/role_playing_with_human.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
1414
from colorama import Fore
1515

16-
from camel.agents import RolePlaying
1716
from camel.configs import ChatGPTConfig
17+
from camel.societies import RolePlaying
1818
from camel.utils import print_text_animated
1919

2020

examples/misalignment/role_playing_multiprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
from colorama import Fore
1919

20-
from camel.agents import RolePlaying
2120
from camel.configs import ChatGPTConfig
21+
from camel.societies import RolePlaying
2222
from camel.typing import TaskType
2323

2424

examples/misalignment/role_playing_with_human.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
1414
from colorama import Fore
1515

16-
from camel.agents import RolePlaying
1716
from camel.configs import ChatGPTConfig
17+
from camel.societies import RolePlaying
1818
from camel.typing import TaskType
1919
from camel.utils import print_text_animated
2020

0 commit comments

Comments
 (0)