Open alphaveneno opened 1 month ago
Credit: @TheCyberTech
This comment is relevant to at least installations made with poetry
I made two installations (remember to use poetry install --no-init not poetry install), one with the original set of dependencies and one with dependencies up-to-date as of July 22/2024.
[tool.poetry.dependencies] python = ">=3.10.0,<3.12" crewai = ">=0.11.0" python-dotenv = "1.0.0" markdown = "3.4.3" pymarkdownlnt = "0.9.15" mdurl = "^0.1.2" langchain-community = "^0.2.9" crewai-tools = "^0.4.26" openai = "^1.36.1"
This works with:
updated_markdown = syntax_review_task.execute_sync()
[tool.poetry.dependencies] python = "<=3.13,>=3.10" crewai = "^0.36.1" python-dotenv = "^1.0.1" markdown = "^3.6" pymarkdownlnt = "^0.9.21" mdurl = "^0.1.2" langchain-community = "^0.2.7" crewai-tools = "^0.4.26"
this works with:
updated_markdown = syntax_review_task.execute()
- original dependencies (with slight modification):
[tool.poetry.dependencies] python = ">=3.10.0,<3.12" crewai = ">=0.11.0" python-dotenv = "1.0.0" markdown = "3.4.3" pymarkdownlnt = "0.9.15" mdurl = "^0.1.2" langchain-community = "^0.2.9" crewai-tools = "^0.4.26" openai = "^1.36.1"
This works with:
updated_markdown = syntax_review_task.execute_sync()
- updated dependencies:
[tool.poetry.dependencies] python = "<=3.13,>=3.10" crewai = "^0.36.1" python-dotenv = "^1.0.1" markdown = "^3.6" pymarkdownlnt = "^0.9.21" mdurl = "^0.1.2" langchain-community = "^0.2.7" crewai-tools = "^0.4.26"
this works with:
updated_markdown = syntax_review_task.execute()
@alphaveneno
My dependences in project.toml are :-
[tool.poetry.dependencies] python = ">=3.10.0,<3.12" crewai = "^0.11.0" python-dotenv = "1.0.0" markdown = "3.4.3" pymarkdownlnt = "0.9.15"
for me the original code work's :- updated_markdown = syntax_review_task.execute()
Just wanted you to know😵
Also i came here to ask , As you post is recent did you encounter any Tool usage error like below :- Output :-
Here is my response:
Thought: Do I need to use a tool? Yes
Action: markdown_validation_tool
Action Input: README.md
It seems we encountered an unexpected error while trying to use the tool. This was the error: Failed to parse ToolCalling from completion {"$schema": "http://-schema.org/draft-07/schema#", "type": "object", "properties": {"tool_name": {"type": "string"}, "arguments": {"type": "object", "required": ["file_path"], "additionalProperties": false, "properties": {"file_path": {"type": "string"}}}}, "required": ["tool_name", "arguments"]}. Got: 2 validation errors for ToolCalling
tool_name
field required (type=value_error.missing)
arguments
field required (type=value_error.missing)
'str' object has no attribute 'tool_name'
- original dependencies (with slight modification):
[tool.poetry.dependencies] python = ">=3.10.0,<3.12" crewai = ">=0.11.0" python-dotenv = "1.0.0" markdown = "3.4.3" pymarkdownlnt = "0.9.15" mdurl = "^0.1.2" langchain-community = "^0.2.9" crewai-tools = "^0.4.26" openai = "^1.36.1" This works with: updated_markdown = syntax_review_task.execute_sync()
- updated dependencies:
[tool.poetry.dependencies] python = "<=3.13,>=3.10" crewai = "^0.36.1" python-dotenv = "^1.0.1" markdown = "^3.6" pymarkdownlnt = "^0.9.21" mdurl = "^0.1.2" langchain-community = "^0.2.7" crewai-tools = "^0.4.26" this works with: updated_markdown = syntax_review_task.execute()
@alphaveneno
My dependences in project.toml are :-
[tool.poetry.dependencies] python = ">=3.10.0,<3.12" crewai = "^0.11.0" python-dotenv = "1.0.0" markdown = "3.4.3" pymarkdownlnt = "0.9.15"
for me the original code work's :- updated_markdown = syntax_review_task.execute() Just wanted you to know😵
Also i came here to ask , As you post is recent did you encounter any Tool usage error like below :- Output :-
Here is my response: Thought: Do I need to use a tool? Yes Action: markdown_validation_tool Action Input: README.md It seems we encountered an unexpected error while trying to use the tool. This was the error: Failed to parse ToolCalling from completion {"$schema": "http://-schema.org/draft-07/schema#", "type": "object", "properties": {"tool_name": {"type": "string"}, "arguments": {"type": "object", "required": ["file_path"], "additionalProperties": false, "properties": {"file_path": {"type": "string"}}}}, "required": ["tool_name", "arguments"]}. Got: 2 validation errors for ToolCalling tool_name field required (type=value_error.missing) arguments field required (type=value_error.missing) 'str' object has no attribute 'tool_name'
No, I cannot say I had any problem with the tools.
Glad to hear the code worked for you. I have a suspicion the problem is the result of some package conflicts in my virtual environment.
just a single line for .env file:
.env
OPENAI_API_KEY=insert your openai key here
Note: best-practice is not to put any type of quotation marks around the value of a key, tuck it in close to the equals sign
main.py