š« CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
Add license to each file and add auto update license script (#131)
Guohao Li6fd865b27ed4
diff --git a/.github/workflows/pre_commit.yaml b/.github/workflows/pre_commit.yamlnew file mode 100644index 000000000..cc27b60ce--- /dev/null+++ b/.github/workflows/pre_commit.yaml@@ -0,0 +1,18 @@+name: Pre Commit Check++on:+ push:+ branches: [ "master" ]+ pull_request:+ branches: [ "master" ]++jobs:+ pre-commit:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v3+ - uses: actions/setup-python@v3+ with:+ python-version: "3.8"+ - uses: pre-commit/[email protected]+ - uses: stefanzweifel/git-auto-commit-action@v4diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 2078b16ef..dbd9632d0 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -16,4 +16,12 @@ repos:rev: 4.0.1hooks:- id: flake8- name: Check PEP8\ No newline at end of file+ name: Check PEP8++ - repo: local+ hooks:+ - id: check-license+ name: Check License+ entry: python licenses/update_license.py . licenses/license_template.txt+ language: system+ types: [python]\ No newline at end of filediff --git a/apps/agents/agents.py b/apps/agents/agents.pyindex f1b0229c2..3b1fc98c8 100644--- a/apps/agents/agents.py+++ b/apps/agents/agents.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ==========="""Gradio-based web app Agents that uses OpenAI API to generatea chat between collaborative agents.diff --git a/apps/agents/test/test_agents.py b/apps/agents/test/test_agents.pyindex 5248d5948..8f2b95b50 100644--- a/apps/agents/test/test_agents.py+++ b/apps/agents/test/test_agents.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import unittestimport gradio as gr@@ -15,6 +28,7 @@ from apps.agents.agents import (class TestAgents(unittest.TestCase):+def test_construct_blocks(self):blocks = construct_blocks(None)self.assertIsInstance(blocks, gr.Blocks)diff --git a/apps/agents/test/test_text_utils.py b/apps/agents/test/test_text_utils.pyindex 3567a1776..eeba21764 100644--- a/apps/agents/test/test_text_utils.py+++ b/apps/agents/test/test_text_utils.py@@ -1,9 +1,23 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from unittest import TestCaseimport apps.agents.text_utils as text_utilsclass TestTextUtils(TestCase):+def test_split_markdown_code_newline(self):inp = ("Solution: To preprocess the historical stock data, we ""can perform the following steps:\n\n1. Remove any unnecessary"diff --git a/apps/agents/text_utils.py b/apps/agents/text_utils.pyindex 134bd1601..d32c67a0c 100644--- a/apps/agents/text_utils.py+++ b/apps/agents/text_utils.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import rediff --git a/apps/common/auto_zip.py b/apps/common/auto_zip.pyindex cc6d1a1b9..4a803b117 100644--- a/apps/common/auto_zip.py+++ b/apps/common/auto_zip.py@@ -1,9 +1,23 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import jsonimport osimport zipfileclass AutoZip:+def __init__(self, zip_path: str, ext: str = ".json"):self.zip_path = zip_pathself.zip = zipfile.ZipFile(zip_path, "r")diff --git a/apps/common/test/test_auto_zip.py b/apps/common/test/test_auto_zip.pyindex 2dccc0af9..9ceaff0d7 100644--- a/apps/common/test/test_auto_zip.py+++ b/apps/common/test/test_auto_zip.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import osfrom unittest import TestCase@@ -8,6 +21,7 @@ REPO_ROOT = os.path.realpath(class TestAutoZip(TestCase):+def test_dict(self):path = os.path.join(REPO_ROOT, "apps/common/test/test_archive_1.zip")zip = AutoZip(path, ".txt")diff --git a/apps/data_explorer/data_explorer.py b/apps/data_explorer/data_explorer.pyindex bcc6f7ef5..dbd3a918f 100644--- a/apps/data_explorer/data_explorer.py+++ b/apps/data_explorer/data_explorer.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ==========="""Gradio-based web UI to explore the Camel dataset."""diff --git a/apps/data_explorer/downloader.py b/apps/data_explorer/downloader.pyindex f155d85ce..2dc81fae0 100644--- a/apps/data_explorer/downloader.py+++ b/apps/data_explorer/downloader.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import osimport urllib.requestdiff --git a/apps/data_explorer/loader.py b/apps/data_explorer/loader.pyindex b221154b4..103eface0 100644--- a/apps/data_explorer/loader.py+++ b/apps/data_explorer/loader.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ==========="""Everything related to parsing the data JSONs into UI-compatible format."""diff --git a/apps/data_explorer/test/test_data_explorer.py b/apps/data_explorer/test/test_data_explorer.pyindex 32cf49ade..b60b5efb6 100644--- a/apps/data_explorer/test/test_data_explorer.py+++ b/apps/data_explorer/test/test_data_explorer.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import osimport unittestimport urllib.request@@ -9,6 +22,7 @@ from apps.data_explorer.loader import REPO_ROOTclass TestDataExplorer(unittest.TestCase):+def test_app(self):test_data_url = ("https://storage.googleapis.com/""camel-bucket/datasets/test/DATA.zip")diff --git a/apps/data_explorer/test/test_loader.py b/apps/data_explorer/test/test_loader.pyindex 23a4ca748..8a9a74be8 100644--- a/apps/data_explorer/test/test_loader.py+++ b/apps/data_explorer/test/test_loader.py@@ -1,9 +1,23 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from unittest import TestCaseimport apps.data_explorer.loader as loaderclass TestLoader(TestCase):+def test_load_datasets_smoke(self):data = loader.load_datasets()self.assertIsNotNone(data)diff --git a/apps/dilemma/database_connection.py b/apps/dilemma/database_connection.pyindex 923e05d4a..9c72e3736 100644--- a/apps/dilemma/database_connection.py+++ b/apps/dilemma/database_connection.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import sqlalchemyfrom google.cloud.sql.connector import Connector, IPTypes@@ -7,6 +20,7 @@ from google.cloud.sql.connector import Connector, IPTypesclass DatabaseConnection:+def __init__(self):INSTANCE_CONNECTION_NAME = "camel-lm:me-central1:camel-dilemma"diff --git a/apps/dilemma/dilemma.py b/apps/dilemma/dilemma.pyindex 44c9eeeac..b7ba27281 100644--- a/apps/dilemma/dilemma.py+++ b/apps/dilemma/dilemma.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ==========="""Gradio-based web UI to select between twooptions and save the answers to a database.@@ -84,9 +97,11 @@ def construct_ui(blocks, dataset: Dict[str, Dict[str, str]],right_better_bn = gr.Button("Right is better")with gr.Row():with gr.Column(scale=1):- left_md = gr.Markdown("LOREM\n" "IPSUM\n")+ left_md = gr.Markdown("LOREM\n"+ "IPSUM\n")with gr.Column(scale=1):- right_md = gr.Markdown("LOREM 2\n" "IPSUM 2\n")+ right_md = gr.Markdown("LOREM 2\n"+ "IPSUM 2\n")state_st = gr.State(dict(name="n", left=dict(who="a", text="at"),diff --git a/camel/__init__.py b/camel/__init__.pyindex cfc534407..5dadd39ea 100644--- a/camel/__init__.py+++ b/camel/__init__.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import camel.agentsimport camel.configsimport camel.generatorsdiff --git a/camel/agents/__init__.py b/camel/agents/__init__.pyindex 5ae677cb1..8cb8eb8e3 100644--- a/camel/agents/__init__.py+++ b/camel/agents/__init__.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from .chat_agent import ChatAgentfrom .task_agent import TaskPlannerAgent, TaskSpecifyAgentfrom .critic_agent import CriticAgentdiff --git a/camel/agents/chat_agent.py b/camel/agents/chat_agent.pyindex 55a95778f..b579624d3 100644--- a/camel/agents/chat_agent.py+++ b/camel/agents/chat_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Any, Dict, List, Optional, Tupleimport openaidiff --git a/camel/agents/critic_agent.py b/camel/agents/critic_agent.pyindex 6e8b50549..2c1f5b34e 100644--- a/camel/agents/critic_agent.py+++ b/camel/agents/critic_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import copyimport randomimport warningsdiff --git a/camel/agents/role_playing.py b/camel/agents/role_playing.pyindex 764e3cf5c..3d375d09d 100644--- a/camel/agents/role_playing.py+++ b/camel/agents/role_playing.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Dict, List, Optional, Tuplefrom camel.agents import (diff --git a/camel/agents/task_agent.py b/camel/agents/task_agent.pyindex ecce76f2f..3f7134042 100644--- a/camel/agents/task_agent.py+++ b/camel/agents/task_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Any, Dict, Optional, Unionfrom camel.agents import ChatAgentdiff --git a/camel/configs.py b/camel/configs.pyindex 32699bfc7..e2d802082 100644--- a/camel/configs.py+++ b/camel/configs.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from dataclasses import dataclass, fieldfrom typing import Dict, Optional, Sequence, Uniondiff --git a/camel/generators.py b/camel/generators.pyindex c16cb4628..885eeda6c 100644--- a/camel/generators.py+++ b/camel/generators.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Dict, Generator, List, Optional, Set, Tuplefrom camel.messages import SystemMessage, SystemMessageTypediff --git a/camel/human.py b/camel/human.pyindex badd6aa72..20fadb88a 100644--- a/camel/human.py+++ b/camel/human.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Any, Dict, Listfrom colorama import Forediff --git a/camel/messages.py b/camel/messages.pyindex d5e8355a8..06bd81a5b 100644--- a/camel/messages.py+++ b/camel/messages.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from dataclasses import dataclassfrom typing import Dict, Optional, Uniondiff --git a/camel/prompts/__init__.py b/camel/prompts/__init__.pyindex c195533a0..a728c32d5 100644--- a/camel/prompts/__init__.py+++ b/camel/prompts/__init__.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from .base import TextPrompt, TextPromptDictfrom .ai_society import AISocietyPromptTemplateDictfrom .code import CodePromptTemplateDictdiff --git a/camel/prompts/ai_society.py b/camel/prompts/ai_society.pyindex db1aafca8..54ae703dc 100644--- a/camel/prompts/ai_society.py+++ b/camel/prompts/ai_society.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Anyfrom camel.prompts import TextPrompt, TextPromptDictdiff --git a/camel/prompts/base.py b/camel/prompts/base.pyindex 49a377f9f..8f0faa5d8 100644--- a/camel/prompts/base.py+++ b/camel/prompts/base.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import inspectfrom typing import Any, Callable, Dict, Set, TypeVar, Uniondiff --git a/camel/prompts/code.py b/camel/prompts/code.pyindex c3742e2fb..8b368707a 100644--- a/camel/prompts/code.py+++ b/camel/prompts/code.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Anyfrom camel.prompts import TextPrompt, TextPromptDictdiff --git a/camel/prompts/evaluation.py b/camel/prompts/evaluation.pyindex ebf1c156c..396fdeed7 100644--- a/camel/prompts/evaluation.py+++ b/camel/prompts/evaluation.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Anyfrom camel.prompts import TextPrompt, TextPromptDictdiff --git a/camel/prompts/misalignment.py b/camel/prompts/misalignment.pyindex f08565573..7a32fd2c1 100644--- a/camel/prompts/misalignment.py+++ b/camel/prompts/misalignment.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Anyfrom camel.prompts import (diff --git a/camel/prompts/prompt_templates.py b/camel/prompts/prompt_templates.pyindex 2ef8215c7..f0cf38c42 100644--- a/camel/prompts/prompt_templates.py+++ b/camel/prompts/prompt_templates.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import warningsfrom typing import Anydiff --git a/camel/prompts/solution_extraction.py b/camel/prompts/solution_extraction.pyindex c85d3d3f4..fdc56a497 100644--- a/camel/prompts/solution_extraction.py+++ b/camel/prompts/solution_extraction.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Anyfrom camel.prompts import TextPrompt, TextPromptDictdiff --git a/camel/prompts/task_prompt_template.py b/camel/prompts/task_prompt_template.pyindex c54091e76..30bb2f062 100644--- a/camel/prompts/task_prompt_template.py+++ b/camel/prompts/task_prompt_template.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Any, Dictfrom camel.prompts import (diff --git a/camel/prompts/translation.py b/camel/prompts/translation.pyindex 5d1b728c9..8cc9f5f42 100644--- a/camel/prompts/translation.py+++ b/camel/prompts/translation.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from typing import Anyfrom camel.prompts import TextPrompt, TextPromptDictdiff --git a/camel/typing.py b/camel/typing.pyindex 99d64978c..2b78bfd48 100644--- a/camel/typing.py+++ b/camel/typing.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from enum import Enumdiff --git a/camel/utils.py b/camel/utils.pyindex fcfddf9e2..dd74007bc 100644--- a/camel/utils.py+++ b/camel/utils.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import osimport reimport timediff --git a/docs/conf.py b/docs/conf.pyindex 0efe7b0d3..dca79981a 100644--- a/docs/conf.py+++ b/docs/conf.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========# Configuration file for the Sphinx documentation builder.## For the full list of built-in configuration values, see the documentation:@@ -16,7 +29,6 @@ copyright = '2023, CAMEL-AI.org'author = 'CAMEL-AI.org'release = '0.1.0'-# -- General configuration ---------------------------------------------------# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configurationdiff --git a/examples/ai_society/generate_meta_data.py b/examples/ai_society/generate_meta_data.pyindex db9929da0..af80eea11 100644--- a/examples/ai_society/generate_meta_data.py+++ b/examples/ai_society/generate_meta_data.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.agents import ChatAgentfrom camel.messages import AssistantSystemMessage, UserChatMessagefrom camel.prompts import PromptTemplateGeneratordiff --git a/examples/ai_society/role_playing.py b/examples/ai_society/role_playing.pyindex e92659665..17d6c0db6 100644--- a/examples/ai_society/role_playing.py+++ b/examples/ai_society/role_playing.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from colorama import Forefrom camel.agents import RolePlayingdiff --git a/examples/ai_society/role_playing_multiprocess.py b/examples/ai_society/role_playing_multiprocess.pyindex 605759c7c..773f91e9c 100644--- a/examples/ai_society/role_playing_multiprocess.py+++ b/examples/ai_society/role_playing_multiprocess.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import jsonimport multiprocessingimport osdiff --git a/examples/ai_society/role_playing_with_critic.py b/examples/ai_society/role_playing_with_critic.pyindex b839a887f..70d0627e8 100644--- a/examples/ai_society/role_playing_with_critic.py+++ b/examples/ai_society/role_playing_with_critic.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from colorama import Forefrom camel.agents import RolePlayingdiff --git a/examples/ai_society/role_playing_with_human.py b/examples/ai_society/role_playing_with_human.pyindex 86622c6ad..44d1f2589 100644--- a/examples/ai_society/role_playing_with_human.py+++ b/examples/ai_society/role_playing_with_human.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from colorama import Forefrom camel.agents import RolePlayingdiff --git a/examples/ai_society/task_generation.py b/examples/ai_society/task_generation.pyindex d0df08ca2..e31e39f52 100644--- a/examples/ai_society/task_generation.py+++ b/examples/ai_society/task_generation.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import multiprocessingimport osdiff --git a/examples/code/generate_meta_data.py b/examples/code/generate_meta_data.pyindex 990f527e7..e182b71e2 100644--- a/examples/code/generate_meta_data.py+++ b/examples/code/generate_meta_data.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.agents import ChatAgentfrom camel.messages import AssistantSystemMessage, UserChatMessagefrom camel.prompts import PromptTemplateGeneratordiff --git a/examples/code/role_playing_multiprocess.py b/examples/code/role_playing_multiprocess.pyindex aec8aa43c..55192838f 100644--- a/examples/code/role_playing_multiprocess.py+++ b/examples/code/role_playing_multiprocess.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import jsonimport multiprocessingimport osdiff --git a/examples/code/task_generation.py b/examples/code/task_generation.pyindex 57db49f6d..64baca5f6 100644--- a/examples/code/task_generation.py+++ b/examples/code/task_generation.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import multiprocessingimport osdiff --git a/examples/evaluation/single_agent.py b/examples/evaluation/single_agent.pyindex c28d327de..8d16efe07 100644--- a/examples/evaluation/single_agent.py+++ b/examples/evaluation/single_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import jsonimport osimport rediff --git a/examples/misalignment/role_playing_multiprocess.py b/examples/misalignment/role_playing_multiprocess.pyindex 592b8e1c0..9a6811977 100644--- a/examples/misalignment/role_playing_multiprocess.py+++ b/examples/misalignment/role_playing_multiprocess.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import jsonimport multiprocessingimport osdiff --git a/examples/misalignment/role_playing_with_human.py b/examples/misalignment/role_playing_with_human.pyindex f87643c56..6556fbf7f 100644--- a/examples/misalignment/role_playing_with_human.py+++ b/examples/misalignment/role_playing_with_human.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from colorama import Forefrom camel.agents import RolePlayingdiff --git a/examples/misalignment/single_agent.py b/examples/misalignment/single_agent.pyindex 3d278d108..2ca829938 100644--- a/examples/misalignment/single_agent.py+++ b/examples/misalignment/single_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.agents import ChatAgentfrom camel.messages import AssistantSystemMessage, UserChatMessagefrom camel.prompts import PromptTemplateGeneratordiff --git a/examples/misalignment/task_generation.py b/examples/misalignment/task_generation.pyindex 859c4fb6c..6a3aea19c 100644--- a/examples/misalignment/task_generation.py+++ b/examples/misalignment/task_generation.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import multiprocessingimport osfrom typing import Optionaldiff --git a/examples/single_agent.py b/examples/single_agent.pyindex a3581efa8..6afe043e2 100644--- a/examples/single_agent.py+++ b/examples/single_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.agents import ChatAgentfrom camel.messages import AssistantSystemMessage, UserChatMessagefrom camel.prompts import PromptTemplateGeneratordiff --git a/examples/summarization/gpt_solution_extraction.py b/examples/summarization/gpt_solution_extraction.pyindex 13ea3fac9..8dcc60468 100644--- a/examples/summarization/gpt_solution_extraction.py+++ b/examples/summarization/gpt_solution_extraction.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import concurrent.futuresimport itertoolsimport jsondiff --git a/examples/summarization/gpt_solver.py b/examples/summarization/gpt_solver.pyindex e43068389..7051e6676 100644--- a/examples/summarization/gpt_solver.py+++ b/examples/summarization/gpt_solver.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import concurrent.futuresimport jsonimport osdiff --git a/examples/translation/translator.py b/examples/translation/translator.pyindex 42cb85fbf..f470b75d1 100644--- a/examples/translation/translator.py+++ b/examples/translation/translator.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import codecsimport jsonimport multiprocessingdiff --git a/DATA_LICENSE b/licenses/DATA_LICENSEsimilarity index 100%rename from DATA_LICENSErename to licenses/DATA_LICENSEdiff --git a/LICENSE b/licenses/LICENSEsimilarity index 98%rename from LICENSErename to licenses/LICENSEindex 3a6c53037..d9056118e 100644--- a/LICENSE+++ b/licenses/LICENSE@@ -186,8 +186,7 @@same "printed page" as the copyright notice for easieridentification within third-party archives.- Copyright 2023 Guohao Li, Hasan Abed Al Kader Hammoud, Hani Itani,- Dmitrii Khizbullin and Bernard Ghanem+ Copyright 2023 @ CAMEL-AI.orgLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.diff --git a/licenses/license_template.txt b/licenses/license_template.txtnew file mode 100644index 000000000..65260e27d--- /dev/null+++ b/licenses/license_template.txt@@ -0,0 +1,13 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========\ No newline at end of filediff --git a/licenses/update_license.py b/licenses/update_license.pynew file mode 100644index 000000000..e780a10bd--- /dev/null+++ b/licenses/update_license.py@@ -0,0 +1,123 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+import os+import re+import sys+from typing import List+++# The license template file is hard-coded with specific start and end lines+def fine_license_start_line(lines: List[str], start_with: str) -> int:+ for i in range(len(lines)):+ if lines[i].startswith(start_with):+ return i+ return None+++def find_license_end_line(lines: List[str], start_with: str) -> int:+ for i in range(len(lines) - 1, -1, -1):+ if lines[i].startswith(start_with):+ return i+ return None+++def update_license_in_file(+ file_path: str,+ license_template_path: str,+ start_line_start_with: str,+ end_line_start_with: str,+) -> bool:+ with open(file_path, 'r') as f:+ content = f.read()++ with open(license_template_path, 'r') as f:+ new_license = f.read().strip()++ maybe_existing_licenses = re.findall(r'^#.*?(?=\n)', content,+ re.MULTILINE | re.DOTALL)+ start_index = fine_license_start_line(maybe_existing_licenses,+ start_line_start_with)+ end_index = find_license_end_line(maybe_existing_licenses,+ end_line_start_with)+ if start_index is not None and end_index is not None:+ maybe_existing_licenses = maybe_existing_licenses[+ start_index:end_index + 1]+ else:+ maybe_existing_licenses = None+ if maybe_existing_licenses:+ maybe_old_licenses = '\n'.join(maybe_existing_licenses)+ if maybe_old_licenses.strip() != new_license.strip():+ replaced_content = content.replace(maybe_old_licenses, new_license)+ with open(file_path, 'w') as f:+ f.write(replaced_content)+ print(f'Replaced license in {file_path}')+ return True+ else:+ return False+ else:+ with open(file_path, 'w') as f:+ f.write(new_license + '\n' + content)+ print(f'Added license to {file_path}')+ return True+++def update_license_in_directory(+ directory_path: str,+ license_template_path: str,+ start_line_start_with: str,+ end_line_start_with: str,+) -> None:+ # Check if directory exists+ if not os.path.isdir(directory_path):+ raise NotADirectoryError(f'{directory_path} is not a directory')+ # Check if license template exists+ if not os.path.isfile(license_template_path):+ raise FileNotFoundError(f'{license_template_path} not found')++ file_count = 0+ for root, _, files in os.walk(directory_path):+ for file_name in files:+ if file_name.endswith('.py'):+ file_path = os.path.join(root, file_name)+ if update_license_in_file(+ file_path,+ license_template_path,+ start_line_start_with,+ end_line_start_with,+ ):+ file_count += 1++ print(f'Licensed update in {file_count} files')+++if __name__ == '__main__':+ if len(sys.argv) < 3:+ print(+ "Usage from command line: "+ "python update_license.py <directory_path> <license_template_path>"+ "No valid input arguments found, please enter manually.")+ directory_path = input("Enter directory path: ")+ license_template_path = input("Enter license template path: ")+ else:+ directory_path = sys.argv[1]+ license_template_path = sys.argv[2]++ start_line_start_with = "# =========== Copyright"+ end_line_start_with = "# =========== Copyright"+ update_license_in_directory(+ directory_path,+ license_template_path,+ start_line_start_with,+ end_line_start_with,+ )diff --git a/setup.py b/setup.pyindex 475d3c10d..ac5a6a106 100644--- a/setup.py+++ b/setup.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from setuptools import find_packages, setup__version__ = '0.1.0'diff --git a/test/agents/test_chat_agent.py b/test/agents/test_chat_agent.pyindex 31a620f27..edbd67a2c 100644--- a/test/agents/test_chat_agent.py+++ b/test/agents/test_chat_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import osimport pytestdiff --git a/test/agents/test_critic_agent.py b/test/agents/test_critic_agent.pyindex 5c49243f2..6602e3f6d 100644--- a/test/agents/test_critic_agent.py+++ b/test/agents/test_critic_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import pytestfrom camel.agents import CriticAgentdiff --git a/test/agents/test_role_playing.py b/test/agents/test_role_playing.pyindex 13c7c19f8..b855ecbbb 100644--- a/test/agents/test_role_playing.py+++ b/test/agents/test_role_playing.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import typingimport pytestdiff --git a/test/agents/test_task_agent.py b/test/agents/test_task_agent.pyindex 9377816f9..d1dc554ce 100644--- a/test/agents/test_task_agent.py+++ b/test/agents/test_task_agent.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.agents import TaskPlannerAgent, TaskSpecifyAgentfrom camel.configs import ChatGPTConfigfrom camel.typing import TaskTypediff --git a/test/prompts/test_ai_society.py b/test/prompts/test_ai_society.pyindex 82387e98c..a7b6fe174 100644--- a/test/prompts/test_ai_society.py+++ b/test/prompts/test_ai_society.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.prompts import AISocietyPromptTemplateDict, TextPromptfrom camel.typing import RoleTypediff --git a/test/prompts/test_base.py b/test/prompts/test_base.pyindex b5bfbf6d6..3ab4a2311 100644--- a/test/prompts/test_base.py+++ b/test/prompts/test_base.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.prompts.base import (TextPrompt,TextPromptDict,diff --git a/test/prompts/test_code.py b/test/prompts/test_code.pyindex 6aae94642..96403ba95 100644--- a/test/prompts/test_code.py+++ b/test/prompts/test_code.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.prompts import CodePromptTemplateDict, TextPromptfrom camel.typing import RoleTypediff --git a/test/prompts/test_misalignment.py b/test/prompts/test_misalignment.pyindex cba5aa047..744ba5084 100644--- a/test/prompts/test_misalignment.py+++ b/test/prompts/test_misalignment.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.prompts import MisalignmentPromptTemplateDict, TextPromptfrom camel.typing import RoleTypediff --git a/test/prompts/test_prompt_templates.py b/test/prompts/test_prompt_templates.pyindex c6a0ab132..abf4364a7 100644--- a/test/prompts/test_prompt_templates.py+++ b/test/prompts/test_prompt_templates.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import pytestfrom camel.prompts import PromptTemplateGenerator, TextPromptdiff --git a/test/prompts/test_task_prompt_template.py b/test/prompts/test_task_prompt_template.pyindex 1f8e9a082..42cffb4ec 100644--- a/test/prompts/test_task_prompt_template.py+++ b/test/prompts/test_task_prompt_template.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.prompts import AISocietyPromptTemplateDict, TaskPromptTemplateDictfrom camel.typing import TaskTypediff --git a/test/prompts/test_translation.py b/test/prompts/test_translation.pyindex 4b3fe836c..8d66505e9 100644--- a/test/prompts/test_translation.py+++ b/test/prompts/test_translation.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.prompts import TextPrompt, TranslationPromptTemplateDictfrom camel.typing import RoleTypediff --git a/test/test_generators.py b/test/test_generators.pyindex cec1f87d8..05fcb4920 100644--- a/test/test_generators.py+++ b/test/test_generators.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.generators import (AISocietyTaskPromptGenerator,RoleNameGenerator,diff --git a/test/test_human.py b/test/test_human.pyindex bf0d67372..e99fc02be 100644--- a/test/test_human.py+++ b/test/test_human.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========from camel.human import Humanfrom camel.messages import AssistantChatMessagediff --git a/test/test_messages.py b/test/test_messages.pyindex 1d211daba..4a23c97ca 100644--- a/test/test_messages.py+++ b/test/test_messages.py@@ -1,3 +1,16 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========import pytestfrom camel.messages import BaseMessage, SystemMessage