Open gulla0 opened 4 weeks ago
I am encountering this as well. The problem is that "overwrite" is being passed true
, not True
, or false
instead of False
, as in this example:
...
## Tool Input:
{
"filename": "data/companies/lanasdance/emails/Julia_Brown.txt",
"content": "Subject: 🎄 New Hip-Hop Class for the Holidays! Get Your Groove On at Lana's Dance Studio! 🎄\n\nDear Julia Brown,\n\nHo ho ho! 🎅\n\nThe festive season is upon us, and we're thrilled to bring some holiday cheer with our brand-new Hip-Hop class during the Christmas holidays! While we know Contemporary dance is your favorite, we believe you’ll love the fresh beats and dynamic moves of Hip-Hop too. Why not try something new at Lana's Dance Studio this season?\n\nHere's why you should join us:\n\n🔥 **Experienced Instructors:** Learn from the best! Our Hip-Hop classes are led by Jessica Rodriguez and Michael Patel, both seasoned professionals with impressive backgrounds in dance and choreography.\n\n🎶 **Age-Specific Sessions:** We have tailored sessions for every age group, and our Teen Dance classes are designed especially for dancers like you, ensuring a supportive and fun environment.\n\n🌟 **Holistic Benefits:** Dancing is a fantastic way to stay active, improve cardiovascular health, build muscle strength, and reduce stress. Plus, it's a great way to make new friends and be part of a vibrant community!\n\n🏆 **Top-Notch Facilities:** Enjoy spacious dance studios equipped with professional sound systems and sprung flooring, ensuring a safe and comfortable experience every time you hit the dance floor.\n\nJoin us for a groove-filled holiday season and make unforgettable memories at Lana's Dance Studio. Spaces are limited, so make sure to **[register now](#)** and secure your spot!\n\nFor more details on class schedules, pricing, and our studio policies, visit our [website](#) or contact us at (408) 778-1178.\n\nDance into the holidays with style at Lana's Dance Studio!\n\nBest wishes,\nLana Afanasiev\nOwner & Director\nLana's Dance Studio\n\nP.S. Don’t forget to check out our holiday discounts for multiple classes and sibling registrations! Ask our staff for more details. 🎁\n\n---\n\nPhone: 408.778.1178 \nAddress: 330 Tennant Ave., Suite 150, Morgan Hill, CA 95037 \n[Visit our website](#) for more information.\n\n---\n\nFollow Us on Social Media: \n**Facebook** | **Instagram** | **Twitter**\n\nNote: If you no longer wish to receive these emails, please [unsubscribe](#).\n\n---\n\nThe holiday season is the perfect time to try something new. We can't wait to see you on the dance floor, spreading joy and rhythm!\n\nHappy Holidays,\nThe Lana's Dance Studio Team",
"overwrite": true
}
## Tool Output:
Error: the Action Input is not a valid key, value dictionary.
If I say something like "never overwrite files" in my task directions, then "overwrite" is passed false
instead of False
.
Description
Tested the FileWriterTool separately and it worked, but when passed to the agent, it fails for some reason.
Steps to Reproduce
Expected behavior
A file is created and modified based on user input.
Screenshots/Code snippets
FileWriterTest:
Tool Import and Use in Agent:
Operating System
macOS Sonoma
Python Version
3.11
crewAI Version
0.51.1
crewAI Tools Version
0.8.3
Virtual Environment
Venv
Evidence
Crew Response:
Possible Solution
I'm not sure about the solution. I was wondering if anyone else has this problem.
Additional context
My assumption is that the issue is with how the Agent is passing arguments to the FileWriterTool.