🐫 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
Fix some typo (#725)
Zecheng Zhang6bcdb310399a
diff --git a/camel/agents/deductive_reasoner_agent.py b/camel/agents/deductive_reasoner_agent.pyindex 45961a511..9b0c09e67 100644--- a/camel/agents/deductive_reasoner_agent.py+++ b/camel/agents/deductive_reasoner_agent.py@@ -126,7 +126,7 @@ $B$.- Direct Path Analysis: What are the immediate and direct conditionsrequired to move from $A$ to $B$?- Intermediate States: Are there states between $A$ and $B$ that must be- transversed or can be used to make the transition smoother or more+ traversed or can be used to make the transition smoother or moreefficient? If yes, what is the content?- Constraints & Limitations: Identify potential barriers or restrictionsin moving from $A$ to $B$. These can be external (e.g., environmental@@ -244,7 +244,7 @@ square brackets)print(f"Message content:\n{msg.content}")# Extract the conditions from the message- condistions_dict = {+ conditions_dict = {f"condition {i}": cdt.replace("<", "").replace(">", "").strip()@@ -281,7 +281,7 @@ square brackets)conditions_and_quality_json: Dict[str, Union[List[str], Dict[str, str]]] = {}- conditions_and_quality_json["conditions"] = condistions_dict+ conditions_and_quality_json["conditions"] = conditions_dictconditions_and_quality_json["labels"] = labelsconditions_and_quality_json["evaluate_quality"] = qualitydiff --git a/camel/agents/knowledge_graph_agent.py b/camel/agents/knowledge_graph_agent.pyindex 8a081fbe9..185b43cd7 100644--- a/camel/agents/knowledge_graph_agent.py+++ b/camel/agents/knowledge_graph_agent.py@@ -122,7 +122,7 @@ class KnowledgeGraphAgent(ChatAgent):role_type=RoleType.ASSISTANT,meta_dict=None,content="Your mission is to transform unstructured content "- "intostructured graph data. Extract nodes and relationships with "+ "into structured graph data. Extract nodes and relationships with ""precision, and let the connections unfold. Your graphs will ""illuminate the hidden connections within the chaos of ""information.",diff --git a/camel/agents/search_agent.py b/camel/agents/search_agent.pyindex af6e28298..4e341ad4f 100644--- a/camel/agents/search_agent.py+++ b/camel/agents/search_agent.py@@ -76,7 +76,7 @@ class SearchAgent(ChatAgent):result = self.step(user_msg).msg.contentresults += result + "\n"- # Final summarise+ # Final summarizationfinal_prompt = TextPrompt('''Here are some summarized texts which split from one text. Usingthe information to answer the question. If can't find the answer,diff --git a/camel/agents/task_agent.py b/camel/agents/task_agent.pyindex b9b93969e..1f749ecf2 100644--- a/camel/agents/task_agent.py+++ b/camel/agents/task_agent.py@@ -233,7 +233,7 @@ The result must be a numbered list in the format:#. Third TaskYou can only give me up to {max_task_num} tasks at a time. \-Each task shoud be concise, concrete and doable for a {role_name}.+Each task should be concise, concrete and doable for a {role_name}.You should make task plan and not ask me questions.If you think no new tasks are needed right now, write "No tasks to add."Now start to give me new tasks one by one. No more than three tasks.diff --git a/camel/prompts/__init__.py b/camel/prompts/__init__.pyindex 269ef479e..b3754d8e4 100644--- a/camel/prompts/__init__.py+++ b/camel/prompts/__init__.py@@ -14,7 +14,6 @@from .ai_society import AISocietyPromptTemplateDictfrom .base import CodePrompt, TextPrompt, TextPromptDictfrom .code import CodePromptTemplateDict-from .descripte_video_prompt import DescriptionVideoPromptTemplateDictfrom .evaluation import EvaluationPromptTemplateDictfrom .generate_text_embedding_data import (GenerateTextEmbeddingDataPromptTemplateDict,@@ -26,6 +25,7 @@ from .role_description_prompt_template import RoleDescriptionPromptTemplateDictfrom .solution_extraction import SolutionExtractionPromptTemplateDictfrom .task_prompt_template import TaskPromptTemplateDictfrom .translation import TranslationPromptTemplateDict+from .video_description_prompt import VideoDescriptionPromptTemplateDict__all__ = ['TextPrompt',@@ -42,5 +42,5 @@ __all__ = ['SolutionExtractionPromptTemplateDict','GenerateTextEmbeddingDataPromptTemplateDict','ObjectRecognitionPromptTemplateDict',- 'DescriptionVideoPromptTemplateDict',+ 'VideoDescriptionPromptTemplateDict',]diff --git a/camel/prompts/task_prompt_template.py b/camel/prompts/task_prompt_template.pyindex 7203e69aa..4e7df06dd 100644--- a/camel/prompts/task_prompt_template.py+++ b/camel/prompts/task_prompt_template.py@@ -18,9 +18,6 @@ from camel.prompts.ai_society import (TextPromptDict,)from camel.prompts.code import CodePromptTemplateDict-from camel.prompts.descripte_video_prompt import (- DescriptionVideoPromptTemplateDict,-)from camel.prompts.evaluation import (EvaluationPromptTemplateDict,)@@ -38,6 +35,9 @@ from camel.prompts.solution_extraction import (SolutionExtractionPromptTemplateDict,)from camel.prompts.translation import TranslationPromptTemplateDict+from camel.prompts.video_description_prompt import (+ VideoDescriptionPromptTemplateDict,+)from camel.types import TaskType@@ -64,6 +64,6 @@ class TaskPromptTemplateDict(Dict[Any, TextPromptDict]):TaskType.ROLE_DESCRIPTION: RoleDescriptionPromptTemplateDict(),TaskType.OBJECT_RECOGNITION: ObjectRecognitionPromptTemplateDict(), # noqa: E501TaskType.GENERATE_TEXT_EMBEDDING_DATA: GenerateTextEmbeddingDataPromptTemplateDict(), # noqa: E501- TaskType.VIDEO_DESCRIPTION: DescriptionVideoPromptTemplateDict(), # noqa: E501+ TaskType.VIDEO_DESCRIPTION: VideoDescriptionPromptTemplateDict(), # noqa: E501})diff --git a/camel/prompts/descripte_video_prompt.py b/camel/prompts/video_description_prompt.pysimilarity index 95%rename from camel/prompts/descripte_video_prompt.pyrename to camel/prompts/video_description_prompt.pyindex 42836e349..7e5d141d8 100644--- a/camel/prompts/descripte_video_prompt.py+++ b/camel/prompts/video_description_prompt.py@@ -18,7 +18,7 @@ from camel.types import RoleType# flake8: noqa :E501-class DescriptionVideoPromptTemplateDict(TextPromptDict):+class VideoDescriptionPromptTemplateDict(TextPromptDict):ASSISTANT_PROMPT = TextPrompt("""You are a master of video analysis.Please provide a shot description of the content of the current video."""