Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

Fix some typo (#725)

Zecheng Zhang6bcdb310399a
diff --git a/camel/agents/deductive_reasoner_agent.py b/camel/agents/deductive_reasoner_agent.py
index 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 conditions
required 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 more
efficient? If yes, what is the content?
- Constraints & Limitations: Identify potential barriers or restrictions
in 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_dict
conditions_and_quality_json["labels"] = labels
conditions_and_quality_json["evaluate_quality"] = quality
diff --git a/camel/agents/knowledge_graph_agent.py b/camel/agents/knowledge_graph_agent.py
index 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.py
index 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.content
results += result + "\n"
- # Final summarise
+ # Final summarization
final_prompt = TextPrompt(
'''Here are some summarized texts which split from one text. Using
the information to answer the question. If can't find the answer,
diff --git a/camel/agents/task_agent.py b/camel/agents/task_agent.py
index 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 Task
You 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__.py
index 269ef479e..b3754d8e4 100644
--- a/camel/prompts/__init__.py
+++ b/camel/prompts/__init__.py
@@ -14,7 +14,6 @@
from .ai_society import AISocietyPromptTemplateDict
from .base import CodePrompt, TextPrompt, TextPromptDict
from .code import CodePromptTemplateDict
-from .descripte_video_prompt import DescriptionVideoPromptTemplateDict
from .evaluation import EvaluationPromptTemplateDict
from .generate_text_embedding_data import (
GenerateTextEmbeddingDataPromptTemplateDict,
@@ -26,6 +25,7 @@ from .role_description_prompt_template import RoleDescriptionPromptTemplateDict
from .solution_extraction import SolutionExtractionPromptTemplateDict
from .task_prompt_template import TaskPromptTemplateDict
from .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.py
index 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: E501
TaskType.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.py
similarity index 95%
rename from camel/prompts/descripte_video_prompt.py
rename to camel/prompts/video_description_prompt.py
index 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."""