Comments (4)
Credit: @theCyberTech
from crewai-examples.
Dependencies and function calls
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.
- 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()
from crewai-examples.
- 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()
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'
from crewai-examples.
- 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()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.
from crewai-examples.
Related Issues (20)
- Bellow vs Below? HOT 2
- [feature request] Add a Conversational Agent example HOT 2
- value is not a valid list HOT 2
- Example for coding a software HOT 3
- Trying to use Surprise Trip Example: problem with poetry HOT 3
- Problems with trip_planner HOT 4
- Bug in Surprise Planner
- Bug in trip planner
- Bug in match_profile_to_poistion
- Multiple LLMs will not trigger multiple agent execution calls and infinitely loop HOT 1
- ToolError in MarkDown_Validator HOT 2
- CrewAI + LangGraph : Does not work HOT 3
- Job Posting old Example needs upgrading HOT 2
- stock_analysis not working anymore
- some folder can't clone to windows for path include space
- Repo is not cloning HOT 5
- How to change the correct language name HOT 1
- Verbose called with an integer 2 instead True or False
- Pydantic Error with Azure openai example:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crewai-examples.