Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing errors of the File Writer tool #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

adanbu
Copy link

@adanbu adanbu commented Oct 20, 2024

  • Fixed a KeyError caused by invalid access to kwargs dictionary key "directory" when no "directory" input was provided (kwargs["directory"]), it was replaced with the get() method to cover both use cases.
    image

  • The agent had trouble providing a correctly formatted input for the overwrite variable and would get stuck on the following error
    image
    Fixed it by changing the variable to string and converting it to boolean within the method, shows better behavior and resilience when used by agents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant