-
Notifications
You must be signed in to change notification settings - Fork 286
Don't use resources for file list #60
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
Conversation
| type: 'resource', | ||
| resource: { | ||
| text: await blob.text(), | ||
| uri: `file://`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this line to me? Will blob.text() have the file names since you passed a directory to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! blob.text() will have the list of files since a directory was passed in to container_file_read. If you look at the tool call below this for reading files, there's an if statement related to whether or not the path provided was a directory. This copies the condition where the passed path is a directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put an image from the inspector in the description too, if that helps!
bb1b1f7 to
fa5cbe3
Compare
929d2d6 to
4f77716
Compare
4f77716 to
354ccbb
Compare
* Update read tool call * prettier * make file write labeling consistent * Update read and write tools descriptions * prettier * Don't use resources for file list * prettier
Gets file list working by using file read to list files in the cwd while we wait on improved resource support