Commit f837afa
committed
fix: remove developer note from transfer_to_agent tool description
The docstring of transfer_to_agent() included a 'Note:' section with
developer-facing advice about preferring TransferToAgentTool. Since
FunctionTool uses the full docstring as the tool description sent to
the model on every invocation, this note was consuming input tokens
and adding irrelevant information to the model context.
Move the note to an inline comment in the function body so it remains
visible to developers but is not included in the tool description.
Fixes #46151 parent 2e370ea commit f837afa
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
0 commit comments