Hey all, love the agent-canvas. I am using it all ...
# proj-agent-canvas
a
Hey all, love the agent-canvas. I am using it all the time with the minimax model. I'm getting agent errors: Error validating tool 'file_editor': 2 validation errors for FileEditorAction old_str Input should be a valid string [type=string_type, input_value=['dependencies]\nhypatia-...', 'features = ["arrow'], input_type=list] For further information visit https://errors.pydantic.dev/2.13/v/string_type new_str Input should be a valid string [type=string_type, input_value=['dependencies]\nhypatia-...', 'features = ["arrow'], input_type=list] For further information visit https://errors.pydantic.dev/2.13/v/string_type. Parameters provided: ['command', 'path', 'old_str', 'new_str']
h
Hi Anthony, could you create a bug issue on https://github.com/OpenHands/agent-canvas/issues with a screenshot and when/where those errors are coming up?
m
Hey @abundant-intern-35931 Thanks for the report. This is actually a model-side issue, where the model struggles to use the tool API correctly. We try to mitigate these kinds of errors in the SDK (see this method), but it's not always possible to catch everything. That said, we could easily add this specific case to the list.
@millions-crayon-32880 WDYT: https://github.com/OpenHands/software-agent-sdk/pull/3735 ? You know better than me in model/tool calls... Do you think it could mitigate the problem?
👀 1
✅ 1
merged 1
m
Running some tests, should have results in a couple of hours.
ty 1