Commit ed03bbf
committed
improvement(tools): state every pinned param, not just the credential
Two agent tools bound to the same Gmail account but different labels reached the
model byte-identical: every param a user fills is stripped from the schema, and
only the credential was ever named in the description. The model could not tell
Inbox from Sent, and with a single tool it could promise a caller it would search
a folder that tool can never reach.
Each tool now states the values the workflow pinned on it, whether or not it has
a duplicate sibling. Opaque resource ids still resolve to a display name; plain
values like a label, a row limit or a toggle need no lookup and are stated
directly. Secrets never are: a field marked `password`, a hidden field, a
secret-named param, and every literal on a tool whose params resolved an
environment variable are all withheld.1 parent b478c8a commit ed03bbf
9 files changed
Lines changed: 726 additions & 624 deletions
File tree
- apps/sim
- executor
- handlers
- agent
- pi/local
- utils
- providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
812 | 816 | | |
813 | 817 | | |
814 | 818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
| |||
This file was deleted.
0 commit comments