Commit 80971b8
authored
fix: remove built-in tools from LLM visibility and harden system prompt (#10)
Remove get_current_time and calculate from tool definitions exposed to the
LLM to prevent small models from proactively calling tools on greetings.
The tools remain callable in tool_engine but are no longer advertised.
Also fix stale +2 offset in get_filtered_definitions_json and strengthen
the system prompt to explicitly forbid tool calls for casual conversation.
Bump version to 0.3.1.1 parent 5e703b9 commit 80971b8
4 files changed
Lines changed: 8 additions & 26 deletions
| 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 | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
| |||
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 87 | | |
102 | 88 | | |
103 | 89 | | |
| |||
129 | 115 | | |
130 | 116 | | |
131 | 117 | | |
132 | | - | |
133 | | - | |
| 118 | + | |
134 | 119 | | |
135 | 120 | | |
136 | 121 | | |
| |||
140 | 125 | | |
141 | 126 | | |
142 | 127 | | |
143 | | - | |
| 128 | + | |
144 | 129 | | |
145 | 130 | | |
146 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
0 commit comments