From 129000d01f60ac1ae9ed910fcda7695755e79230 Mon Sep 17 00:00:00 2001 From: Taleb <76521427+rumble773@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:00:05 +0300 Subject: [PATCH] Performed spell check across most of code base (#882) * Performed spell check across the entire documentation Thank you once again! * Performed spell check across the most of code base Folders been checked: - agents - cli - memory - project - tasks - telemetry - tools - translations --- .../agent_builder/utilities/base_output_converter_base.py | 2 +- src/crewai/cli/templates/config/tasks.yaml | 2 +- src/crewai/tools/tool_calling.py | 4 ++-- src/crewai/tools/tool_usage.py | 2 +- src/crewai/translations/en.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/crewai/agents/agent_builder/utilities/base_output_converter_base.py b/src/crewai/agents/agent_builder/utilities/base_output_converter_base.py index d2043bde9..b04e0ae03 100644 --- a/src/crewai/agents/agent_builder/utilities/base_output_converter_base.py +++ b/src/crewai/agents/agent_builder/utilities/base_output_converter_base.py @@ -27,7 +27,7 @@ class OutputConverter(BaseModel, ABC): model: Any = Field(description="The model to be used to convert the text.") instructions: str = Field(description="Conversion instructions to the LLM.") max_attempts: Optional[int] = Field( - description="Max number of attempts to try to get the output formated.", + description="Max number of attempts to try to get the output formatted.", default=3, ) diff --git a/src/crewai/cli/templates/config/tasks.yaml b/src/crewai/cli/templates/config/tasks.yaml index 1fd358322..684720574 100644 --- a/src/crewai/cli/templates/config/tasks.yaml +++ b/src/crewai/cli/templates/config/tasks.yaml @@ -12,4 +12,4 @@ reporting_task: Make sure the report is detailed and contains any and all relevant information. expected_output: > A fully fledge reports with the mains topics, each with a full section of information. - Formated as markdown with out '```' + Formatted as markdown without '```' diff --git a/src/crewai/tools/tool_calling.py b/src/crewai/tools/tool_calling.py index df4a03cde..2a0fd425b 100644 --- a/src/crewai/tools/tool_calling.py +++ b/src/crewai/tools/tool_calling.py @@ -8,7 +8,7 @@ from pydantic.v1 import BaseModel, Field class ToolCalling(BaseModel): tool_name: str = Field(..., description="The name of the tool to be called.") arguments: Optional[Dict[str, Any]] = Field( - ..., description="A dictinary of arguments to be passed to the tool." + ..., description="A dictionary of arguments to be passed to the tool." ) @@ -17,5 +17,5 @@ class InstructorToolCalling(PydanticBaseModel): ..., description="The name of the tool to be called." ) arguments: Optional[Dict[str, Any]] = PydanticField( - ..., description="A dictinary of arguments to be passed to the tool." + ..., description="A dictionary of arguments to be passed to the tool." ) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index d2fe8d886..213ecd2f8 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -119,7 +119,7 @@ class ToolUsage: attempts=self._run_attempts, ) result = self._format_result(result=result) # type: ignore # "_format_result" of "ToolUsage" does not return a value (it only ever returns None) - return result # type: ignore # Fix the reutrn type of this function + return result # type: ignore # Fix the return type of this function except Exception: self.task.increment_tools_errors() diff --git a/src/crewai/translations/en.json b/src/crewai/translations/en.json index 3b4771c06..4c2f4a777 100644 --- a/src/crewai/translations/en.json +++ b/src/crewai/translations/en.json @@ -16,7 +16,7 @@ "format_without_tools": "\nSorry, I didn't use the right format. I MUST either use a tool (among the available ones), OR give my best final answer.\nI just remembered the expected format I must follow:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Observation can repeat N times)\nThought: I now can give a great answer\nFinal Answer: my best complete final answer to the task\nYour final answer must be the great and the most complete as possible, it must be outcome described\n\n", "task_with_context": "{task}\n\nThis is the context you're working with:\n{context}", "expected_output": "\nThis is the expect criteria for your final answer: {expected_output} \n you MUST return the actual complete content as the final answer, not a summary.", - "human_feedback": "You got human feedback on your work, re-avaluate it and give a new Final Answer when ready.\n {human_feedback}", + "human_feedback": "You got human feedback on your work, re-evaluate it and give a new Final Answer when ready.\n {human_feedback}", "getting_input": "This is the agent's final answer: {final_answer}\nPlease provide feedback: " }, "errors": {