Commit 1b557d1
authored
fix: do not lowercase all items in tool(like) lists (#344)
* fix: do not lowercase all items in tool(like) lists
When importing things from github or other case sensitive location
the previous functionality would lowercase everything causing
clones from VCS to fail.
This fix removes the calls to lowercase tools and contexts along with
the other places they occur.
Signed-off-by: Bill Maxwell <[email protected]>
* fix: the tool name was not used in the prompt
When the next tool chats, the name is lost when the resp variable is
reinitialized in the for loop. It always appeared to the user they
were chatting with the main entrypoint tool.
This changes it so the previous response is saved, and passed to the
set prompt function. So now if a tool is communicating the user
knows which tool is handling the chat turn.
Signed-off-by: Bill Maxwell <[email protected]>
---------
Signed-off-by: Bill Maxwell <[email protected]>1 parent 5807fce commit 1b557d1
File tree
4 files changed
+11
-8
lines changed- pkg
- chat
- parser
- tests/testdata
- TestCase2
- TestCase
4 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments