Skip to content

Conversation

@chengchengmu
Copy link
Contributor

@chengchengmu chengchengmu commented Apr 8, 2025

Description

This is to make the @files tool's prompt more accurate: updating prompt to say that the xml schema is provided below and to respect the tags accurately.

Related Issue(s)

The @files tool failed few times whereas the other tools don't fail for me.
Upon investigation , in one instance, the LLM didn't respect the schema exactly and used <content> instead of <contents>.
Other tools such as @editor has an explicit section called XML schema whereas with @files it doesn't explicitly say it, that might be the reason.

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I've updated the README and/or relevant docs pages - N/A
  • I've run make docs to update the vimdoc pages - N/A

@chengchengmu chengchengmu changed the title fix(tools): be more explicit about the xml schema fix(files tool): be more explicit about the xml schema Apr 8, 2025
@olimorris
Copy link
Owner

Thanks for this. We'll be moving away from XML in #1141, hopefully soon.

@olimorris olimorris merged commit 95bb7a5 into olimorris:main Apr 8, 2025
5 checks passed
cleong14 pushed a commit to cleong14/codecompanion.nvim that referenced this pull request May 21, 2025
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.

2 participants