Commit bda119b
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 #4615
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8ddddc0 commit bda119b
1 file changed
+3
-5
lines changed| 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