Commit 19cefa1
Assistant: remove directory structure tool (#10870)
Addresses #10721, reworking the changes from #10517. Removes
`getDirectoryStructure` in favor of a `directoriesOnly` argument to
`getProjectTree` to save on input tokens and reduce the total number of
tools.
The same examples from the PR that originally introduced the tool, this
time using `getProjectTree` with `directoriesOnly`. Efficiently
exploring the root:
<img width="1652" height="936" alt="Screenshot 2025-12-01 at 4 18 31 PM"
src="https://github.com/user-attachments/assets/d7d72268-e6bb-43a1-bb19-a35cf460e233"
/>
Navigating a folder that's excluded by default by noticing that results
were excluded and calling the tool again:
<img width="1538" height="922" alt="Screenshot 2025-12-01 at 4 24 26 PM"
src="https://github.com/user-attachments/assets/f7f76d8e-836a-4555-a0cc-d082d88df3ff"
/>
Seems like models can get just as much mileage out of this interface as
with the dedicated tool.
### Release Notes
<!--
Optionally, replace `N/A` with text to be included in the next release
notes.
The `N/A` bullets are ignored. If you refer to one or more Positron
issues,
these issues are used to collect information about the feature or
bugfix, such
as the relevant language pack as determined by Github labels of type
`lang: `.
The note will automatically be tagged with the language.
These notes are typically filled by the Positron team. If you are an
external
contributor, you may ignore this section.
-->
#### New Features
- Assistant: combine directory structure tool with project tree tool
(#10721)
#### Bug Fixes
- N/A
### QA Notes
<!--
Positron team members: please add relevant e2e test tags, so the tests
can be
run when you open this pull request.
- Instructions:
https://github.com/posit-dev/positron/blob/main/test/e2e/README.md#pull-requests-and-test-tags
- Available tags:
https://github.com/posit-dev/positron/blob/main/test/e2e/infra/test-runner/test-tags.ts
-->
<!--
Add additional information for QA on how to validate the change,
paying special attention to the level of risk, adjacent areas that
could be affected by the change, and any important contextual
information not present in the linked issues.
-->
---------
Signed-off-by: Simon P. Couch <[email protected]>
Co-authored-by: sharon <[email protected]>1 parent 9873233 commit 19cefa1
File tree
5 files changed
+152
-374
lines changed- extensions/positron-assistant
- src
- tools
5 files changed
+152
-374
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
| 757 | + | |
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
| 790 | + | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
794 | 799 | | |
795 | 800 | | |
796 | 801 | | |
797 | 802 | | |
798 | 803 | | |
799 | 804 | | |
800 | 805 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | 806 | | |
858 | 807 | | |
859 | 808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | | - | |
416 | | - | |
417 | 414 | | |
418 | 415 | | |
419 | 416 | | |
| |||
Lines changed: 0 additions & 258 deletions
This file was deleted.
0 commit comments